mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11103] Suppress errors from unlink/rmdir in the test case helpers
PHPBB3-11103
This commit is contained in:
parent
a57f207d68
commit
6ca2256f77
1 changed files with 4 additions and 4 deletions
|
@ -185,11 +185,11 @@ class phpbb_test_case_helpers
|
|||
{
|
||||
if (is_dir($file))
|
||||
{
|
||||
rmdir($file);
|
||||
@rmdir($file);
|
||||
}
|
||||
else
|
||||
{
|
||||
unlink($file);
|
||||
@unlink($file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -215,11 +215,11 @@ class phpbb_test_case_helpers
|
|||
{
|
||||
$this->empty_dir($path . $file);
|
||||
|
||||
rmdir($path . $file);
|
||||
@rmdir($path . $file);
|
||||
}
|
||||
else
|
||||
{
|
||||
unlink($path . $file);
|
||||
@unlink($path . $file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue