Added Captcha library
This commit is contained in:
parent
5555e79327
commit
d2eaa1fe73
3 changed files with 24 additions and 0 deletions
17
tests/Socialbox/Other/CaptchaTest.php
Normal file
17
tests/Socialbox/Other/CaptchaTest.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Socialbox\Other;
|
||||
|
||||
use Gregwar\Captcha\CaptchaBuilder;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class CaptchaTest extends TestCase
|
||||
{
|
||||
public function testCaptchaRendering()
|
||||
{
|
||||
$builder = new CaptchaBuilder("Foo Bar");
|
||||
$builder->build();
|
||||
|
||||
$builder->save(__DIR__ . DIRECTORY_SEPARATOR . 'test.png');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue