From: Dmitry Stogov Date: Fri, 16 Sep 2005 15:24:50 +0000 (+0000) Subject: Fixed tests X-Git-Tag: RELEASE_0_9_0~198 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=213a1768a2f666518f653da951954676a168e226;p=php Fixed tests --- diff --git a/Zend/tests/array_type_hint_001.phpt b/Zend/tests/array_type_hint_001.phpt index def85b39bd..4c4f048df7 100755 --- a/Zend/tests/array_type_hint_001.phpt +++ b/Zend/tests/array_type_hint_001.phpt @@ -12,4 +12,4 @@ foo(123); --EXPECTF-- 3 -Catchable fatal error: Argument 1 must be an array, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2 +Catchable fatal error: Argument 1 passed to foo() must be an array, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2 diff --git a/tests/classes/type_hinting_001.phpt b/tests/classes/type_hinting_001.phpt index ff9c61f633..17cf57e344 100644 --- a/tests/classes/type_hinting_001.phpt +++ b/tests/classes/type_hinting_001.phpt @@ -35,4 +35,4 @@ $a->b($b); ?> --EXPECTF-- -Catchable fatal error: Argument 1 must implement interface Foo, called in %s on line 27 and defined in %s on line 12 +Catchable fatal error: Argument 1 passed to FooBar::a() must implement interface Foo, called in %s on line 27 and defined in %s on line 12 diff --git a/tests/lang/bug24658.phpt b/tests/lang/bug24658.phpt index f799b17d5c..5f3b324b61 100644 --- a/tests/lang/bug24658.phpt +++ b/tests/lang/bug24658.phpt @@ -53,4 +53,4 @@ int(2) object(foo)#%d (0) { } -Catchable fatal error: Argument 1 must be an object of class foo in %s on line %d +Catchable fatal error: Argument 1 passed to typehint() must be an object of class foo in %s on line %d diff --git a/tests/lang/catchable_error_001.phpt b/tests/lang/catchable_error_001.phpt index 77492768f9..d0161286d0 100644 --- a/tests/lang/catchable_error_001.phpt +++ b/tests/lang/catchable_error_001.phpt @@ -19,4 +19,4 @@ Catchable fatal error [1] echo "ALIVE!\n"; ?> --EXPECTF-- -Catchable fatal error: Argument 1 must be an instance of Foo, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php on line 5 +Catchable fatal error: Argument 1 passed to blah() must be an instance of Foo, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php on line 5 diff --git a/tests/lang/catchable_error_002.phpt b/tests/lang/catchable_error_002.phpt index 32d4b8bfe9..53f443696f 100644 --- a/tests/lang/catchable_error_002.phpt +++ b/tests/lang/catchable_error_002.phpt @@ -25,7 +25,7 @@ array(5) { [0]=> int(4096) [1]=> - string(%d) "Argument 1 must be an instance of Foo, called in %scatchable_error_002.php on line 17 and defined" + string(%d) "Argument 1 passed to blah() must be an instance of Foo, called in %scatchable_error_002.php on line 17 and defined" [2]=> string(%d) "%scatchable_error_002.php" [3]=> diff --git a/tests/lang/type_hints_001.phpt b/tests/lang/type_hints_001.phpt index 2af109632c..dc14706a36 100644 --- a/tests/lang/type_hints_001.phpt +++ b/tests/lang/type_hints_001.phpt @@ -23,4 +23,4 @@ type_hint_foo($bar); ?> --EXPECTF-- -Catchable fatal error: Argument 1 must be an instance of Foo, called in %s on line 16 and defined in %s on line 9 +Catchable fatal error: Argument 1 passed to type_hint_foo() must be an instance of Foo, called in %s on line 16 and defined in %s on line 9