From 553a79908df2991fcbb68f6cdf7104649345c39c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Wer=C5=82os?= Date: Wed, 14 Aug 2024 07:40:36 +0200 Subject: [PATCH] Update --- tests/IntegrationTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/IntegrationTest.php b/tests/IntegrationTest.php index 6010110..82de3a2 100644 --- a/tests/IntegrationTest.php +++ b/tests/IntegrationTest.php @@ -12,6 +12,7 @@ namespace Tests; use PHPUnit\Framework\TestCase; +use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Process\Process; @@ -32,7 +33,10 @@ public static function setUpBeforeClass(): void public static function tearDownAfterClass(): void { $filesystem = new Filesystem(); - $filesystem->remove(self::TEST_DIR); + try { // Workaround for running on Windows + $filesystem->remove(self::TEST_DIR); + } catch (IOException $exception) { + } } /**