diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-02-18 09:56:39 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-02-18 11:03:38 +0100 |
commit | cc0e01a2fad81ae87b5b2240ddd776e508e4c59a (patch) | |
tree | a94902681676d0a07efc5f14671536b5d327ee09 /scripts | |
parent | 5b15908ed7d1765c1776b40ffc58092044aa1332 (diff) | |
download | php-git-cc0e01a2fad81ae87b5b2240ddd776e508e4c59a.tar.gz |
Handle exception patterns in bless_tests.php
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/dev/bless_tests.php | 4 |
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; } |