Skip to content

Commit 9673079

Browse files
Fix GH-18404: Display diff when a single test is run (GH-19400)
1 parent e4078a6 commit 9673079

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

run-tests.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,10 @@ function main(): void
688688
// Run selected tests.
689689
$test_cnt = count($test_files);
690690

691+
if ($test_cnt === 1) {
692+
$cfg['show']['diff'] = true;
693+
}
694+
691695
verify_config($php);
692696
write_information($user_tests, $phpdbg);
693697

0 commit comments

Comments
 (0)