Skip to content

Commit

Permalink
test: fix cache directory creation
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed Jan 7, 2022
1 parent a97b406 commit 47eccce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Unit/Cache/Compiled/CompiledPhpFileCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ public function test_failing_validation_compilation_invalidates_cache_entry(): v

public function test_clear_cache_does_not_delete_unrelated_files(): void
{
mkdir($this->cacheDir);
if (! is_dir($this->cacheDir)) {
mkdir($this->cacheDir);
}

touch($filenameA = $this->cacheDir . DIRECTORY_SEPARATOR . 'foo.php');
touch($filenameB = $this->cacheDir . DIRECTORY_SEPARATOR . 'bar.php');
Expand Down

0 comments on commit 47eccce

Please sign in to comment.