File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
src/Symfony/Component/AssetMapper/Tests Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1515use Symfony \Component \AssetMapper \ImportMap \ImportMapEntry ;
1616use Symfony \Component \AssetMapper \ImportMap \ImportMapType ;
1717use Symfony \Component \AssetMapper \ImportMap \RemotePackageStorage ;
18+ use Symfony \Component \Filesystem \Exception \IOException ;
1819use Symfony \Component \Filesystem \Filesystem ;
1920
2021class RemotePackageStorageTest extends TestCase
@@ -32,7 +33,11 @@ protected function setUp(): void
3233
3334 protected function tearDown (): void
3435 {
35- $ this ->filesystem ->remove (self ::$ writableRoot );
36+ try {
37+ $ this ->filesystem ->remove (self ::$ writableRoot );
38+ } catch (IOException ) {
39+ // no-op
40+ }
3641 }
3742
3843 public function testGetStorageDir ()
Original file line number Diff line number Diff line change 1313
1414use PHPUnit \Framework \TestCase ;
1515use Symfony \Component \AssetMapper \Path \LocalPublicAssetsFilesystem ;
16+ use Symfony \Component \Filesystem \Exception \IOException ;
1617use Symfony \Component \Filesystem \Filesystem ;
1718
1819class LocalPublicAssetsFilesystemTest extends TestCase
@@ -30,7 +31,11 @@ protected function setUp(): void
3031
3132 protected function tearDown (): void
3233 {
33- $ this ->filesystem ->remove (self ::$ writableRoot );
34+ try {
35+ $ this ->filesystem ->remove (self ::$ writableRoot );
36+ } catch (IOException ) {
37+ // no-op
38+ }
3439 }
3540
3641 public function testWrite ()
You can’t perform that action at this time.
0 commit comments