Skip to content
Snippets Groups Projects
Commit 70650a00 authored by Thomas Müller's avatar Thomas Müller
Browse files

no warnings within unlinkDir() within the TestCleanupListener

parent fcf6653e
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ class TestCleanupListener implements PHPUnit_Framework_TestListener {
}
private function unlinkDir($dir) {
if ($dh = opendir($dir)) {
if ($dh = @opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if ($file === '..' || $file === '.') {
continue;
......@@ -68,12 +68,12 @@ class TestCleanupListener implements PHPUnit_Framework_TestListener {
$this->unlinkDir($path);
}
else {
unlink($path);
@unlink($path);
}
}
closedir($dh);
}
rmdir($dir);
@rmdir($dir);
}
private function cleanStrayDataFiles() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment