From: Felipe Pena Date: Mon, 4 Feb 2008 13:56:50 +0000 (+0000) Subject: Fix tests (new error message) X-Git-Tag: RELEASE_2_0_0a1~634 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b335a2ff016b4334574003d6035551eb7577bcb;p=php Fix tests (new error message) --- 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