Skip to content

Commit

Permalink
minor #18576 [Cache] Fix test tearDown (nicolas-grekas)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nicolas-grekas committed Apr 18, 2016
2 parents 39df9e4 + 9ca22e9 commit 8aec0bb
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -35,6 +35,9 @@ public static function tearDownAfterClass()

public static function rmdir($dir)
{
if (!file_exists($dir)) {
return;
}
if (!$dir || 0 !== strpos(dirname($dir), sys_get_temp_dir())) {
throw new \Exception(__METHOD__."() operates only on subdirs of system's temp dir");
}
Expand Down

0 comments on commit 8aec0bb

Please sign in to comment.