Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix captcha helper test. #2736

Closed
wants to merge 1 commit into from

2 participants

@AndrejAndb

Remove only captcha images from test temp directory.
Without this script trying remove all files from /tmp dir on production server

Andrej Andb fix captcha helper test.
Remove only captcha images from test temp directory.
e9939cd
@weierophinney weierophinney referenced this pull request from a commit
@weierophinney weierophinney [#2736] Test fix
- $testDir was not always set; added a conditional to ensure it's
  present before iterating it to remove temp files.
- also, call parent::tearDown()
c3b7343
@ghost Unknown referenced this pull request from a commit
@weierophinney weierophinney [#2736] Test fix
- $testDir was not always set; added a conditional to ensure it's
  present before iterating it to remove temp files.
- also, call parent::tearDown()
8a72ec4
@ghost Unknown referenced this pull request from a commit
@weierophinney weierophinney Merge branch 'hotfix/2736'
Close #2736
0f1247c
@ghost Unknown referenced this pull request from a commit
@weierophinney weierophinney Merge branch 'hotfix/2736' into develop
Forward port #2736
247b9bf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 11, 2012
  1. fix captcha helper test.

    Andrej Andb authored
    Remove only captcha images from test temp directory.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/ZendTest/Form/View/Helper/Captcha/ImageTest.php
View
2  tests/ZendTest/Form/View/Helper/Captcha/ImageTest.php
@@ -62,7 +62,7 @@ public function setUp()
public function tearDown()
{
// remove captcha images
- foreach (new DirectoryIterator($this->tmpDir) as $file) {
+ foreach (new DirectoryIterator($this->testDir) as $file) {
if (!$file->isDot() && !$file->isDir()) {
unlink($file->getPathname());
}
Something went wrong with that request. Please try again.