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 1919use Symfony \Component \Console \Input \ArrayInput ;
2020use Symfony \Component \Console \Output \NullOutput ;
2121use Symfony \Component \DependencyInjection \Container ;
22+ use Symfony \Component \Filesystem \Exception \IOException ;
2223use Symfony \Component \Filesystem \Filesystem ;
2324use Symfony \Component \Finder \Finder ;
2425
@@ -38,13 +39,14 @@ protected function setUp(): void
3839
3940 protected function tearDown (): void
4041 {
41- $ this ->fs ->remove ($ this ->kernel ->getProjectDir ());
42+ try {
43+ $ this ->fs ->remove ($ this ->kernel ->getProjectDir ());
44+ } catch (IOException $ e ) {
45+ }
4246 }
4347
4448 public function testCacheIsFreshAfterCacheClearedWithWarmup ()
4549 {
46- $ this ->fs ->mkdir ($ this ->kernel ->getProjectDir ());
47-
4850 $ input = new ArrayInput (['cache:clear ' ]);
4951 $ application = new Application ($ this ->kernel );
5052 $ application ->setCatchExceptions (false );
You can’t perform that action at this time.
0 commit comments