summaryrefslogtreecommitdiffstats
path: root/tests/testcleanuplistener.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-13 15:32:11 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-13 15:32:11 +0100
commit70650a004a417ece24188a82a20a84546283df46 (patch)
treed010d7032e6fb6a5b6c8569020960dd8b7fc089e /tests/testcleanuplistener.php
parentfcf6653e64521c1ac7dcd7a02edf928a9060c599 (diff)
downloadnextcloud-server-70650a004a417ece24188a82a20a84546283df46.tar.gz
nextcloud-server-70650a004a417ece24188a82a20a84546283df46.zip
no warnings within unlinkDir() within the TestCleanupListener
Diffstat (limited to 'tests/testcleanuplistener.php')
-rw-r--r--tests/testcleanuplistener.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testcleanuplistener.php b/tests/testcleanuplistener.php
index 368ea7bc8f4..a969ece6dd5 100644
--- a/tests/testcleanuplistener.php
+++ b/tests/testcleanuplistener.php
@@ -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() {