]> 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..031045b08375264d8dbd0242b5f53f706683f410 100644 (file)
@@ -9,6 +9,9 @@ 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