]> granicus.if.org Git - php/commitdiff
- Fixed tests
authorJani Taskinen <jani@php.net>
Sat, 13 Feb 2010 01:08:04 +0000 (01:08 +0000)
committerJani Taskinen <jani@php.net>
Sat, 13 Feb 2010 01:08:04 +0000 (01:08 +0000)
tests/classes/constants_error_004.phpt
tests/lang/bug44827.phpt

index 03e67258a65c45e02314133eb285907b36b81238..732c530e85023062f3e1c89d57b1645283d1f656 100644 (file)
@@ -10,4 +10,4 @@ Class constant whose initial value refereces a non-existent class
   $a = new C();
 ?>
 --EXPECTF--
-Fatal error: Class 'D' not found in %s on line %d
+Fatal error: Undefined class constant 'D::hello' in %s on line %d
index 38e1d4569156d3ec37b84b9e62d19272f4aa8222..1bf345b2eb3fd6dc0a4f7aab45d3e3e97a3b69d3 100644 (file)
@@ -9,6 +9,8 @@ Testfest Munich 2009
 define('::', true);
 var_dump(constant('::'));
 ?>
---EXPECTREGEX--
-.*Fatal.*
+--EXPECTF--
+Warning: Class constants cannot be defined or redefined in %s on line %d
 
+Warning: constant(): Couldn't find constant :: in %s on line %d
+NULL