diff options
| author | Marcus Boerger <helly@php.net> | 2006-05-21 18:10:31 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2006-05-21 18:10:31 +0000 |
| commit | 75771301569ebbcb5bd5e3a4db325b955241404a (patch) | |
| tree | 72724c4fc043806b00e0b6a97ee87faebe8d81e1 /tests | |
| parent | 1be624e7baf410cf7b99796a943a3f5a0e0d40d1 (diff) | |
| download | php-git-75771301569ebbcb5bd5e3a4db325b955241404a.tar.gz | |
- MFH improve error messages
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/classes/interfaces_003.phpt | 2 | ||||
| -rw-r--r-- | tests/classes/type_hinting_001.phpt | 2 | ||||
| -rwxr-xr-x | tests/classes/type_hinting_003.phpt | 2 | ||||
| -rw-r--r-- | tests/lang/bug24658.phpt | 2 | ||||
| -rw-r--r-- | tests/lang/type_hints_001.phpt | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/classes/interfaces_003.phpt b/tests/classes/interfaces_003.phpt index 2c4c7e7c94..7bdca933e7 100755 --- a/tests/classes/interfaces_003.phpt +++ b/tests/classes/interfaces_003.phpt @@ -23,4 +23,4 @@ $obj = new MyTestClass; ===DONE=== --EXPECTF-- -Catchable fatal error: Argument 1 passed to MyTestClass::__construct() must be an object of class MyObject, called in %sinterfaces_003.php on line %d +Catchable fatal error: Argument 1 passed to MyTestClass::__construct() must be an object of class MyObject, none given, called in %sinterfaces_003.php on line %d diff --git a/tests/classes/type_hinting_001.phpt b/tests/classes/type_hinting_001.phpt index 17cf57e344..f55dd53bf4 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 passed to FooBar::a() 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, instance of Blort given, called in %s on line 27 and defined in %s on line 12 diff --git a/tests/classes/type_hinting_003.phpt b/tests/classes/type_hinting_003.phpt index ea01fc2dcb..431d66eabc 100755 --- a/tests/classes/type_hinting_003.phpt +++ b/tests/classes/type_hinting_003.phpt @@ -57,4 +57,4 @@ array(1) { int(25) } -Catchable fatal error: Argument 1 passed to Test::f1() must be an array, called in %stype_hinting_003.php on line %d and defined in %stype_hinting_003.php on line %d +Catchable fatal error: Argument 1 passed to Test::f1() must be an array, integer given, called in %stype_hinting_003.php on line %d and defined in %stype_hinting_003.php on line %d diff --git a/tests/lang/bug24658.phpt b/tests/lang/bug24658.phpt index 5f3b324b61..944fe44ce8 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 passed to typehint() must be an object of class foo in %s on line %d +Catchable fatal error: Argument 1 passed to typehint() must be an instance of foo, integer given in %s on line %d diff --git a/tests/lang/type_hints_001.phpt b/tests/lang/type_hints_001.phpt index dc14706a36..57808d474f 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 passed to type_hint_foo() 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, instance of Bar given, called in %s on line 16 and defined in %s on line 9 |
