Skip to content

Commit

Permalink
Fixed UPDATE_TEST_FIXTURES.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jan 21, 2025
1 parent 983bbea commit 2337c87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Empty file.
4 changes: 2 additions & 2 deletions tests/phpunit/Functional/CustomizerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,9 @@ protected function assertDirectoriesEqual(string $dir1, string $dir2, ?callable
$allowed_files = array_keys($dir2_files);
$finder = new Finder();
$finder->files()->in($dir2)->filter(static function (\SplFileInfo $file) use ($allowed_files, $dir2): bool {
$relativePath = str_replace($dir2 . DIRECTORY_SEPARATOR, '', $file->getRealPath());
$relative_path = str_replace(realpath($dir2) . DIRECTORY_SEPARATOR, '', $file->getRealPath());

return in_array($relativePath, $allowed_files);
return in_array($relative_path, $allowed_files);
});

$this->fs->mirror($dir2, $dir1, $finder->getIterator(), [
Expand Down

0 comments on commit 2337c87

Please sign in to comment.