summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-02-04 13:56:50 +0000
committerFelipe Pena <felipe@php.net>2008-02-04 13:56:50 +0000
commit5b335a2ff016b4334574003d6035551eb7577bcb (patch)
tree73182339bc99f93b345c695194ca6bf7871b6edd /tests
parent1348f95d204234529dc23caebc3c79ec7dd9cba6 (diff)
downloadphp-git-5b335a2ff016b4334574003d6035551eb7577bcb.tar.gz
Fix tests (new error message)
Diffstat (limited to 'tests')
-rw-r--r--tests/classes/autoload_012.phpt4
-rw-r--r--tests/classes/bug27504.phpt2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/classes/autoload_012.phpt b/tests/classes/autoload_012.phpt
index 13e0f9f76a..2563f7598e 100644
--- a/tests/classes/autoload_012.phpt
+++ b/tests/classes/autoload_012.phpt
@@ -12,9 +12,9 @@ Ensure callback methods in unknown classes trigger autoload.
--EXPECTF--
In autoload: string(6) "UndefC"
-Warning: call_user_func() expects parameter 1 to be valid callback, string given in %s on line %d
+Warning: call_user_func() expects parameter 1 to be a valid callback, class 'UndefC' not found in %s on line %d
--UEXPECTF--
In autoload: unicode(6) "UndefC"
-Warning: call_user_func() expects parameter 1 to be valid callback, Unicode string given in %s on line %d
+Warning: call_user_func() expects parameter 1 to be a valid callback, class 'UndefC' not found in %s on line %d
diff --git a/tests/classes/bug27504.phpt b/tests/classes/bug27504.phpt
index c83a7ae031..5f2c5a03ce 100644
--- a/tests/classes/bug27504.phpt
+++ b/tests/classes/bug27504.phpt
@@ -20,6 +20,6 @@ Bug #27504 (call_user_func_array allows calling of private/protected methods)
--EXPECTF--
Called function foo:bar(1)
-Warning: call_user_func_array() expects parameter 1 to be valid callback, array given in %s on line %d
+Warning: call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method foo::bar() in %s on line %d
Fatal error: Call to private method foo::bar() from context '' in %s on line %d