Skip to content

Commit

Permalink
Fix cache directory test
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Jan 13, 2020
1 parent ba59b68 commit be4d799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/features/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ public function testCacheDirectoryPreserveDependencies()
));
$pug->cacheDirectory($templatesDirectory);
$files = glob("$cacheDirectory/*.php");
$files = array_filter($files, function ($name) {
$files = array_values(array_filter($files, function ($name) {
return basename($name) !== 'registry.php';
});
}));
$file = count($files) ? file_get_contents($files[0]) : null;
$this->emptyDirectory($cacheDirectory);
rmdir($cacheDirectory);
Expand Down

0 comments on commit be4d799

Please sign in to comment.