Skip to content

Commit fc97959

Browse files
committed
test: sameFile() changes output name
1 parent 6268076 commit fc97959

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/bootstrap.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ function same(string $expected, $actual): void
2020

2121
function sameFile(string $file, $actual): void
2222
{
23-
same(file_get_contents($file), $actual);
23+
try {
24+
same(file_get_contents($file), $actual);
25+
} catch (Tester\AssertException $e) {
26+
$e->outputName = basename($file, '.expect');
27+
throw $e;
28+
}
2429
}
2530

2631

0 commit comments

Comments
 (0)