summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-12 10:34:49 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-07-12 12:54:01 +0200
commit9a274de4f45f5aac2c8ce9370b3e572281ff9f94 (patch)
treec4768f7d86cbca1dc8e27543ad1ad8517bc0ce84 /scripts
parent0793af0673ade4ecb714fba274e16075abc1c8b4 (diff)
downloadphp-git-9a274de4f45f5aac2c8ce9370b3e572281ff9f94.tar.gz
Improve bless_tests
If a string var_dump contains a wildcard, also make the length a wildcard.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dev/bless_tests.php1
1 files changed, 1 insertions, 0 deletions
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;
}