We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 94df2f6 + c5bafc3 commit 38bca53Copy full SHA for 38bca53
scripts/dev/bless_tests.php
@@ -62,9 +62,9 @@ function getFiles(array $dirsOrFiles): \Iterator {
62
}
63
64
function normalizeOutput(string $out): string {
65
- $out = preg_replace('/in \/.+ on line \d+$/m', 'in %s on line %d', $out);
66
- $out = preg_replace('/in \/.+:\d+$/m', 'in %s:%d', $out);
67
- $out = preg_replace('/^#(\d+) \/.+\(\d+\):/m', '#$1 %s(%d):', $out);
+ $out = preg_replace('/in (\/|[A-Z]:\\\\).+ on line \d+$/m', 'in %s on line %d', $out);
+ $out = preg_replace('/in (\/|[A-Z]:\\\\).+:\d+$/m', 'in %s:%d', $out);
+ $out = preg_replace('/^#(\d+) (\/|[A-Z]:\\\\).+\(\d+\):/m', '#$1 %s(%d):', $out);
68
$out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out);
69
$out = preg_replace('/resource\(\d+\) of type/', 'resource(%d) of type', $out);
70
$out = preg_replace(
0 commit comments