Browse Source

- Fixed tests

pull/271/head
Felipe Pena 15 years ago
parent
commit
12cc948688
  1. 2
      tests/basic/bug51709_1.phpt
  2. 2
      tests/basic/bug51709_2.phpt
  3. 4
      tests/lang/bug21820.phpt

2
tests/basic/bug51709_1.phpt

@ -13,4 +13,4 @@ class foo {
===DONE===
<?php exit(0); ?>
--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

2
tests/basic/bug51709_2.phpt

@ -13,4 +13,4 @@ class foo {
===DONE===
<?php exit(0); ?>
--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

4
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
Loading…
Cancel
Save