]> granicus.if.org Git - php/commitdiff
Don't depend on exact parse error messages in assert tests
authorNikita Popov <nikic@php.net>
Fri, 29 Aug 2014 20:06:48 +0000 (22:06 +0200)
committerNikita Popov <nikic@php.net>
Fri, 29 Aug 2014 20:07:25 +0000 (22:07 +0200)
ext/standard/tests/assert/assert_error3.phpt
ext/standard/tests/assert/assert_error4.phpt

index 54b91edd3d93e74f67a728921136f4de2fafa836..6df2fe4e26decbb93f15d927bae6d76a811bfebd 100644 (file)
@@ -14,7 +14,7 @@ $sa = "0 $ 0";
 var_dump($r2 = assert($sa));
 --EXPECTF--
 
-Parse error: syntax error, unexpected '$' in %s(3) : assert code on line 1
+Parse error: syntax error, %s in %s(3) : assert code on line 1
 
 Catchable fatal error: assert(): Failure evaluating code: 
 0 $ 0 in %s on line 3
index 264cc8fecf6f7b7f43ec30dac840c447a791d034..41d404b1f32466bbf689137acf5ae9ac8c254509 100644 (file)
@@ -14,7 +14,7 @@ $sa = "0 $ 0";
 var_dump($r2 = assert($sa, "Describing what was asserted"));
 --EXPECTF--
 
-Parse error: syntax error, unexpected '$' in %s(3) : assert code on line 1
+Parse error: syntax error, %s in %s(3) : assert code on line 1
 
 Catchable fatal error: assert(): Failure evaluating code: 
 Describing what was asserted:"0 $ 0" in %s on line 3