File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Tests/Command/CacheClearCommand Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 19
19
use Symfony \Component \Console \Input \ArrayInput ;
20
20
use Symfony \Component \Console \Output \NullOutput ;
21
21
use Symfony \Component \DependencyInjection \Container ;
22
+ use Symfony \Component \Filesystem \Exception \IOException ;
22
23
use Symfony \Component \Filesystem \Filesystem ;
23
24
use Symfony \Component \Finder \Finder ;
24
25
@@ -38,13 +39,14 @@ protected function setUp(): void
38
39
39
40
protected function tearDown (): void
40
41
{
41
- $ this ->fs ->remove ($ this ->kernel ->getProjectDir ());
42
+ try {
43
+ $ this ->fs ->remove ($ this ->kernel ->getProjectDir ());
44
+ } catch (IOException $ e ) {
45
+ }
42
46
}
43
47
44
48
public function testCacheIsFreshAfterCacheClearedWithWarmup ()
45
49
{
46
- $ this ->fs ->mkdir ($ this ->kernel ->getProjectDir ());
47
-
48
50
$ input = new ArrayInput (['cache:clear ' ]);
49
51
$ application = new Application ($ this ->kernel );
50
52
$ application ->setCatchExceptions (false );
You can’t perform that action at this time.
0 commit comments