From: Felipe Pena Date: Fri, 24 Jun 2011 19:23:25 +0000 (+0000) Subject: - Fixed tests X-Git-Tag: php-5.4.0alpha2~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12cc948688437e99f7f09b26f7435bea1b47edc0;p=php - Fixed tests --- diff --git a/tests/basic/bug51709_1.phpt b/tests/basic/bug51709_1.phpt index 8abb92555d..19d298ad7d 100644 --- a/tests/basic/bug51709_1.phpt +++ b/tests/basic/bug51709_1.phpt @@ -13,4 +13,4 @@ class foo { ===DONE=== --EXPECTF-- -Parse error: syntax error, unexpected T_FOR, expecting T_STRING in %sbug51709_1.php on line %d +Parse error: syntax error, unexpected 'for' (T_FOR), expecting identifier (T_STRING) in %sbug51709_1.php on line %d diff --git a/tests/basic/bug51709_2.phpt b/tests/basic/bug51709_2.phpt index 7763cafe52..c5e904df83 100644 --- a/tests/basic/bug51709_2.phpt +++ b/tests/basic/bug51709_2.phpt @@ -13,4 +13,4 @@ class foo { ===DONE=== --EXPECTF-- -Parse error: syntax error, unexpected T_GOTO, expecting T_STRING in %sbug51709_2.php on line %d +Parse error: syntax error, unexpected 'goto' (T_GOTO), expecting identifier (T_STRING) in %sbug51709_2.php on line %d diff --git a/tests/lang/bug21820.phpt b/tests/lang/bug21820.phpt index 0ca233ea84..b862309e31 100644 --- a/tests/lang/bug21820.phpt +++ b/tests/lang/bug21820.phpt @@ -9,5 +9,5 @@ $arr = array('foo' => 'bar'); echo "$arr['foo']"; ?> ---EXPECTREGEX-- -Parse error: (parse|syntax) error, .*expecting `?T_STRING'? or `?T_VARIABLE'? or `?T_NUM_STRING'? in .*bug21820.php on line .* +--EXPECTF-- +Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in %sbug21820.php on line %d