Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ca22e9

Browse files
[Cache] Fix test tearDown
1 parent 39df9e4 commit 9ca22e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/Cache/Tests/Adapter/FilesystemAdapterTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public static function tearDownAfterClass()
3535

3636
public static function rmdir($dir)
3737
{
38+
if (!file_exists($dir)) {
39+
return;
40+
}
3841
if (!$dir || 0 !== strpos(dirname($dir), sys_get_temp_dir())) {
3942
throw new \Exception(__METHOD__."() operates only on subdirs of system's temp dir");
4043
}

0 commit comments

Comments
 (0)