Fixed image test

This commit is contained in:
franck
2013-08-15 12:12:54 +02:00
parent 7bd14d5aab
commit 56034e1184

View File

@@ -76,12 +76,14 @@ class ImageTest extends \PHPUnit_Framework_TestCase
public static function setUpBeforeClass() {
$dir = THELIA_WEB_DIR."/cache/tests";
if ($dh = opendir($dir)) {
if ($dh = @opendir($dir)) {
while ($file = readdir($dh)) {
if ($file == '.' || $file == '..') continue;
unlink(sprintf("%s/%s", $dir, $file));
}
closedir($dir);
}
}