From: Nikita Popov Date: Fri, 12 Jul 2019 08:34:49 +0000 (+0200) Subject: Improve bless_tests X-Git-Tag: php-7.4.0beta1~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a274de4f45f5aac2c8ce9370b3e572281ff9f94;p=php Improve bless_tests If a string var_dump contains a wildcard, also make the length a wildcard. --- diff --git a/scripts/dev/bless_tests.php b/scripts/dev/bless_tests.php index 19c24bf188..190ebfb86a 100755 --- a/scripts/dev/bless_tests.php +++ b/scripts/dev/bless_tests.php @@ -53,6 +53,7 @@ function normalizeOutput(string $out): string { $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); + $out = preg_replace('/string\(\d+\) "([^"]*%d)/', 'string(%d) "$1', $out); return $out; }