summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-02-18 09:56:39 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-02-18 11:03:38 +0100
commitcc0e01a2fad81ae87b5b2240ddd776e508e4c59a (patch)
treea94902681676d0a07efc5f14671536b5d327ee09 /scripts
parent5b15908ed7d1765c1776b40ffc58092044aa1332 (diff)
downloadphp-git-cc0e01a2fad81ae87b5b2240ddd776e508e4c59a.tar.gz
Handle exception patterns in bless_tests.php
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dev/bless_tests.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/dev/bless_tests.php b/scripts/dev/bless_tests.php
index 121a011f9a..67c4defa3b 100644
--- a/scripts/dev/bless_tests.php
+++ b/scripts/dev/bless_tests.php
@@ -36,7 +36,9 @@ foreach ($it as $file) {
}
function normalizeOutput(string $out): string {
- $out = preg_replace('/in \/.+ on line \d+/', 'in %s on line %d', $out);
+ $out = preg_replace('/in \/.+ on line \d+$/m', 'in %s on line %d', $out);
+ $out = preg_replace('/in \/.+:\d+$/m', 'in %s:%d', $out);
+ $out = preg_replace('/^#(\d+) \/.+\(\d+\):/m', '#$1 %s(%d):', $out);
$out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out);
return $out;
}