Skip to content

Commit 8aec0bb

Browse files
minor symfony#18576 [Cache] Fix test tearDown (nicolas-grekas)
This PR was merged into the 3.1-dev branch. Discussion ---------- [Cache] Fix test tearDown | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 9ca22e9 [Cache] Fix test tearDown
2 parents 39df9e4 + 9ca22e9 commit 8aec0bb

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)