From ba85ed295a34956b74b04cc4f6086c96fa2758ec Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Tue, 21 Jan 2025 22:01:50 +1100 Subject: [PATCH] Added verbose dirs diff. --- tests/phpunit/Functional/CustomizerTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/Functional/CustomizerTestCase.php b/tests/phpunit/Functional/CustomizerTestCase.php index d485533..a20d095 100644 --- a/tests/phpunit/Functional/CustomizerTestCase.php +++ b/tests/phpunit/Functional/CustomizerTestCase.php @@ -711,7 +711,7 @@ protected function assertDirectoriesEqual(string $dir1, string $dir2, ?callable // If differences exist, throw assertion error. if (!empty($diffs['only_in_dir1']) || !empty($diffs['only_in_dir2']) || !empty($diffs['different_files'])) { - $message = "Differences between directories:\n"; + $message = sprintf("Differences between directories %s and %s:%s", $dir1, $dir2, PHP_EOL); if (!empty($diffs['only_in_dir1'])) { $message .= "Files only in dir1:\n";