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

Commit

Permalink
Merge branch 'hotfix/captcha-failures' into develop
Browse files Browse the repository at this point in the history
Fixes test issues due to timing issues in captcha GC
  • Loading branch information
Showing 1 changed file with 5 additions and 0 deletions.
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 7e47a02

Please sign in to comment.