no warnings within unlinkDir() within the TestCleanupListener
This commit is contained in:
parent
fcf6653e64
commit
70650a004a
|
@ -58,7 +58,7 @@ class TestCleanupListener implements PHPUnit_Framework_TestListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private function unlinkDir($dir) {
|
private function unlinkDir($dir) {
|
||||||
if ($dh = opendir($dir)) {
|
if ($dh = @opendir($dir)) {
|
||||||
while (($file = readdir($dh)) !== false) {
|
while (($file = readdir($dh)) !== false) {
|
||||||
if ($file === '..' || $file === '.') {
|
if ($file === '..' || $file === '.') {
|
||||||
continue;
|
continue;
|
||||||
|
@ -68,12 +68,12 @@ class TestCleanupListener implements PHPUnit_Framework_TestListener {
|
||||||
$this->unlinkDir($path);
|
$this->unlinkDir($path);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
unlink($path);
|
@unlink($path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir($dh);
|
closedir($dh);
|
||||||
}
|
}
|
||||||
rmdir($dir);
|
@rmdir($dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function cleanStrayDataFiles() {
|
private function cleanStrayDataFiles() {
|
||||||
|
|
Loading…
Reference in New Issue