diff options
| author | Jani Taskinen <jani@php.net> | 2010-02-13 01:08:04 +0000 |
|---|---|---|
| committer | Jani Taskinen <jani@php.net> | 2010-02-13 01:08:04 +0000 |
| commit | 52f160cae96f0f02e87310dfb27cae0cd877f35f (patch) | |
| tree | c978e4dab03865066a44d17a68f8738c4bf52ee9 | |
| parent | bd3a33df8a42d4970e3b50c732e121395c914b94 (diff) | |
| download | php-git-52f160cae96f0f02e87310dfb27cae0cd877f35f.tar.gz | |
- Fixed tests
| -rw-r--r-- | tests/classes/constants_error_004.phpt | 2 | ||||
| -rw-r--r-- | tests/lang/bug44827.phpt | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/classes/constants_error_004.phpt b/tests/classes/constants_error_004.phpt index 03e67258a6..732c530e85 100644 --- a/tests/classes/constants_error_004.phpt +++ b/tests/classes/constants_error_004.phpt @@ -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 diff --git a/tests/lang/bug44827.phpt b/tests/lang/bug44827.phpt index 38e1d45691..1bf345b2eb 100644 --- a/tests/lang/bug44827.phpt +++ b/tests/lang/bug44827.phpt @@ -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 |
