Merge branch '4.4' into 5.2

* 4.4:
  [Contracts] fix branch-aliases
  Fix transient test
This commit is contained in:
Nicolas Grekas 2021-02-11 13:36:50 +01:00
commit b3f046d81d

View File

@ -19,6 +19,7 @@ use Symfony\Component\Config\Resource\ResourceInterface;
use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\NullOutput; use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\DependencyInjection\Container; use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\Filesystem\Exception\IOException;
use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder; use Symfony\Component\Finder\Finder;
@ -38,13 +39,14 @@ class CacheClearCommandTest extends TestCase
protected function tearDown(): void protected function tearDown(): void
{ {
$this->fs->remove($this->kernel->getProjectDir()); try {
$this->fs->remove($this->kernel->getProjectDir());
} catch (IOException $e) {
}
} }
public function testCacheIsFreshAfterCacheClearedWithWarmup() public function testCacheIsFreshAfterCacheClearedWithWarmup()
{ {
$this->fs->mkdir($this->kernel->getProjectDir());
$input = new ArrayInput(['cache:clear']); $input = new ArrayInput(['cache:clear']);
$application = new Application($this->kernel); $application = new Application($this->kernel);
$application->setCatchExceptions(false); $application->setCatchExceptions(false);