diff options
author | Johannes Schlüter <johannes@php.net> | 2008-10-19 18:04:35 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2008-10-19 18:04:35 +0000 |
commit | 35db77d890fe690a8a77d0694abbca9854032860 (patch) | |
tree | ae8d37b36bf3dc09f61d2c4d18bafd58d2c416d9 /run-tests.php | |
parent | 78325e3f94e2dc8e4f33559be0f9f99e76c6547e (diff) | |
download | php-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-x | run-tests.php | 2 |
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); |