Skip to content

Commit

Permalink
test: fix cache directory removal
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed Jan 1, 2022
1 parent 0144bf0 commit 33167d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Integration/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Throwable;

use function implode;
use function is_dir;
use function iterator_to_array;

abstract class IntegrationTest extends TestCase
Expand All @@ -32,6 +33,10 @@ protected function tearDown(): void
{
parent::tearDown();

if (! is_dir($this->cacheDir)) {
return;
}

/** @var FilesystemIterator $file */
foreach (new FilesystemIterator($this->cacheDir) as $file) {
/** @var string $path */
Expand Down

0 comments on commit 33167d2

Please sign in to comment.