From: Felipe Pena Date: Mon, 4 Feb 2008 14:29:51 +0000 (+0000) Subject: Fix tests (new error message) X-Git-Tag: RELEASE_2_0_0a1~631 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b612b6d44b3e28293ca16f913f015b5787222d00;p=php Fix tests (new error message) --- diff --git a/Zend/tests/bug31720.phpt b/Zend/tests/bug31720.phpt index 43ae3f805f..5b2644b58e 100644 --- a/Zend/tests/bug31720.phpt +++ b/Zend/tests/bug31720.phpt @@ -10,5 +10,5 @@ array_walk($array, array($nonesuchvar,'show')); --EXPECTF-- Notice: Undefined variable: nonesuchvar in %s on line %d -Warning: array_walk() expects parameter 2 to be valid callback, array given in %s on line %d +Warning: array_walk() expects parameter 2 to be a valid callback, second array member is not a valid method in %s on line %d ===DONE=== diff --git a/Zend/tests/bug32290.phpt b/Zend/tests/bug32290.phpt index f1c4e294d7..169f269876 100755 --- a/Zend/tests/bug32290.phpt +++ b/Zend/tests/bug32290.phpt @@ -99,8 +99,9 @@ var_dump($x->doSomethingStatic(1)); ===A=== TestB::doSomething(1) -Warning: call_user_func_array() expects parameter 1 to be valid callback, array given in %s on line %d -NULL +Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method TestA::doSomething() should not be called statically, assuming $this from compatible context TestB in %s on line %d +TestA::doSomething(2) +int(1) ===B=== TestB::doSomethingThis(1) @@ -110,8 +111,9 @@ int(1) ===C=== TestB::doSomethingParent(1) -Warning: call_user_func_array() expects parameter 1 to be valid callback, array given in %s on line %d -NULL +Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method TestA::doSomethingParent() should not be called statically, assuming $this from compatible context TestB in %s on line %d +TestA::doSomethingParent(2) +int(1) ===D=== TestB::doSomethingParentThis(1)