File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 16
16
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
17
17
use Symfony \Component \DependencyInjection \ContainerBuilder ;
18
18
use Symfony \Component \DependencyInjection \ContainerInterface ;
19
+ use Symfony \Component \Filesystem \Exception \IOException ;
19
20
use Symfony \Component \Filesystem \Filesystem ;
20
21
use Symfony \Component \HttpFoundation \Request ;
21
22
use Symfony \Component \HttpFoundation \Response ;
@@ -35,8 +36,10 @@ class KernelTest extends TestCase
35
36
{
36
37
protected function tearDown (): void
37
38
{
38
- $ fs = new Filesystem ();
39
- $ fs ->remove (__DIR__ .'/Fixtures/var ' );
39
+ try {
40
+ (new Filesystem ())->remove (__DIR__ .'/Fixtures/var ' );
41
+ } catch (IOException $ e ) {
42
+ }
40
43
}
41
44
42
45
public function testConstructor ()
@@ -586,7 +589,7 @@ public function testProjectDirExtension()
586
589
587
590
public function testKernelReset ()
588
591
{
589
- ( new Filesystem ())-> remove ( __DIR__ . ' /Fixtures/var/cache ' );
592
+ $ this -> tearDown ( );
590
593
591
594
$ kernel = new CustomProjectDirKernel ();
592
595
$ kernel ->boot ();
You can’t perform that action at this time.
0 commit comments