Skip to content

Commit 4dae8f5

Browse files
Merge branch '4.4' into 5.2
* 4.4: [Contracts] fix branch-aliases Fix transient test
2 parents 6981349 + a0d35f5 commit 4dae8f5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Tests/Command/CacheClearCommand/CacheClearCommandTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Symfony\Component\Console\Input\ArrayInput;
2020
use Symfony\Component\Console\Output\NullOutput;
2121
use Symfony\Component\DependencyInjection\Container;
22+
use Symfony\Component\Filesystem\Exception\IOException;
2223
use Symfony\Component\Filesystem\Filesystem;
2324
use 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);

0 commit comments

Comments
 (0)