summaryrefslogtreecommitdiff
path: root/vendor/gregwar/captcha/tests/CaptchaBuilderTest.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2017-12-15 13:27:25 -0800
committerFrédéric Guillot <fred@kanboard.net>2017-12-15 13:27:25 -0800
commit8e6476b4028e44687e10bf7fb2617a2d2fff97d2 (patch)
treef010db02cb0ff016bdc806a0a87e1a4b21946f0a /vendor/gregwar/captcha/tests/CaptchaBuilderTest.php
parenta93b8e10f5954be0853eec693c13e84c4bd9e6f2 (diff)
Update composer dependencies
Diffstat (limited to 'vendor/gregwar/captcha/tests/CaptchaBuilderTest.php')
-rw-r--r--vendor/gregwar/captcha/tests/CaptchaBuilderTest.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/gregwar/captcha/tests/CaptchaBuilderTest.php b/vendor/gregwar/captcha/tests/CaptchaBuilderTest.php
new file mode 100644
index 00000000..5325a9c1
--- /dev/null
+++ b/vendor/gregwar/captcha/tests/CaptchaBuilderTest.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace Test;
+
+use Gregwar\Captcha\CaptchaBuilder;
+use PHPUnit\Framework\TestCase;
+
+class CaptchaBuilderTest extends TestCase
+{
+ public function testDemo()
+ {
+ $captcha = new CaptchaBuilder();
+ $captcha
+ ->build()
+ ->save('out.jpg')
+ ;
+
+ $this->assertTrue(file_exists(__DIR__.'/../out.jpg'));
+ }
+
+ public function testFingerPrint()
+ {
+ $int = count(CaptchaBuilder::create()
+ ->build()
+ ->getFingerprint()
+ );
+
+ $this->assertTrue(is_int($int));
+ }
+} \ No newline at end of file