summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2008-10-19 18:04:35 +0000
committerJohannes Schlüter <johannes@php.net>2008-10-19 18:04:35 +0000
commit35db77d890fe690a8a77d0694abbca9854032860 (patch)
treeae8d37b36bf3dc09f61d2c4d18bafd58d2c416d9 /run-tests.php
parent78325e3f94e2dc8e4f33559be0f9f99e76c6547e (diff)
downloadphp-git-35db77d890fe690a8a77d0694abbca9854032860.tar.gz
Add %S and %A to EXPECTF, they work like %s and %a but match empty strings, too
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/run-tests.php b/run-tests.php
index 423ede7cd3..7899b38d86 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -1752,7 +1752,9 @@ COMMAND $cmd
// Stick to basics
$wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
$wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);
+ $wanted_re = str_replace('%S', '[^\r\n]*', $wanted_re);
$wanted_re = str_replace('%a', '.+', $wanted_re);
+ $wanted_re = str_replace('%A', '.*', $wanted_re);
$wanted_re = str_replace('%w', '\s*', $wanted_re);
$wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
$wanted_re = str_replace('%d', '\d+', $wanted_re);