Fix GH-18404: Display diff when a single test is run (GH-19400)

This commit is contained in:
Alexandre Daubois 2025-08-08 19:16:32 +02:00 committed by GitHub
parent e4078a6a70
commit 9673079903
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -688,6 +688,10 @@ function main(): void
// Run selected tests. // Run selected tests.
$test_cnt = count($test_files); $test_cnt = count($test_files);
if ($test_cnt === 1) {
$cfg['show']['diff'] = true;
}
verify_config($php); verify_config($php);
write_information($user_tests, $phpdbg); write_information($user_tests, $phpdbg);