From 9ca22e9805d55b920ce22f029ed321127928992d Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 18 Apr 2016 13:57:20 +0200 Subject: [PATCH] [Cache] Fix test tearDown --- .../Component/Cache/Tests/Adapter/FilesystemAdapterTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Symfony/Component/Cache/Tests/Adapter/FilesystemAdapterTest.php b/src/Symfony/Component/Cache/Tests/Adapter/FilesystemAdapterTest.php index 60493742ed213..418cbf9ebc29f 100644 --- a/src/Symfony/Component/Cache/Tests/Adapter/FilesystemAdapterTest.php +++ b/src/Symfony/Component/Cache/Tests/Adapter/FilesystemAdapterTest.php @@ -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"); }