Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -35,8 +35,8 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.4-dev",
"dev-develop": "2.5-dev"
"dev-master": "2.1-dev",
"dev-develop": "2.2-dev"
}
},
"autoload-dev": {
Expand Down
5 changes: 5 additions & 0 deletions test/ImageTest.php
Expand Up @@ -131,6 +131,11 @@ public function testCaptchaImageCleanup()
*/
public function testCaptchaImageCleanupOnlyCaptchaFilesIdentifiedByTheirSuffix()
{
if (!defined('TESTS_ZEND_CAPTCHA_GC')
|| !constant('TESTS_ZEND_CAPTCHA_GC')
) {
$this->markTestSkipped('Enable TESTS_ZEND_CAPTCHA_GC to run this test');
}
$this->captcha->generate();
$filename = $this->testDir . "/" . $this->captcha->getId() . ".png";
$this->assertTrue(file_exists($filename));
Expand Down

0 comments on commit 21a09bf

Please sign in to comment.