diff --git a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php index 0019f604cc8c5..ca6bd2b860ffc 100644 --- a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php +++ b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php @@ -15,6 +15,7 @@ use Symfony\Component\AssetMapper\ImportMap\ImportMapEntry; use Symfony\Component\AssetMapper\ImportMap\ImportMapType; use Symfony\Component\AssetMapper\ImportMap\RemotePackageStorage; +use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Filesystem; class RemotePackageStorageTest extends TestCase @@ -32,7 +33,11 @@ protected function setUp(): void protected function tearDown(): void { - $this->filesystem->remove(self::$writableRoot); + try { + $this->filesystem->remove(self::$writableRoot); + } catch (IOException) { + // no-op + } } public function testGetStorageDir() diff --git a/src/Symfony/Component/AssetMapper/Tests/Path/LocalPublicAssetsFilesystemTest.php b/src/Symfony/Component/AssetMapper/Tests/Path/LocalPublicAssetsFilesystemTest.php index 4363ccbf577a8..12a7a1cd3d9ce 100644 --- a/src/Symfony/Component/AssetMapper/Tests/Path/LocalPublicAssetsFilesystemTest.php +++ b/src/Symfony/Component/AssetMapper/Tests/Path/LocalPublicAssetsFilesystemTest.php @@ -13,6 +13,7 @@ use PHPUnit\Framework\TestCase; use Symfony\Component\AssetMapper\Path\LocalPublicAssetsFilesystem; +use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Filesystem; class LocalPublicAssetsFilesystemTest extends TestCase @@ -30,7 +31,11 @@ protected function setUp(): void protected function tearDown(): void { - $this->filesystem->remove(self::$writableRoot); + try { + $this->filesystem->remove(self::$writableRoot); + } catch (IOException) { + // no-op + } } public function testWrite()