Added Captcha library

This commit is contained in:
netkas 2024-10-24 15:23:28 -04:00
parent 5555e79327
commit d2eaa1fe73
3 changed files with 24 additions and 0 deletions

View 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');
}
}