diff options
| author | Aaron Piotrowski <aaron@trowski.com> | 2015-07-07 16:54:39 -0500 |
|---|---|---|
| committer | Aaron Piotrowski <aaron@trowski.com> | 2015-07-07 16:54:39 -0500 |
| commit | a1a83bf5f0f97dbf1a30622ec23365766d590591 (patch) | |
| tree | 5d56a0f13b56c6478885c46df384655a38b7a86b /tests | |
| parent | dbadf447b2514c254ada0ed8b9f6c1ae34936186 (diff) | |
| download | php-git-a1a83bf5f0f97dbf1a30622ec23365766d590591.tar.gz | |
Switch code on thrown TypeError and ParseError to 0, update related tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/classes/type_hinting_004.phpt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/classes/type_hinting_004.phpt b/tests/classes/type_hinting_004.phpt index c5f8d3984b..8883f26336 100644 --- a/tests/classes/type_hinting_004.phpt +++ b/tests/classes/type_hinting_004.phpt @@ -149,10 +149,10 @@ Ensure type hints are enforced for functions invoked as callbacks. ?> --EXPECTF-- ---> Type hints with callback function: -1: Argument 1 passed to f1() must be an instance of A, integer given%s(%d) +0: Argument 1 passed to f1() must be an instance of A, integer given%s(%d) in f1; -1: Argument 1 passed to f2() must be an instance of A, integer given%s(%d) +0: Argument 1 passed to f2() must be an instance of A, integer given%s(%d) in f2; in f2; @@ -160,10 +160,10 @@ in f2; ---> Type hints with callback static method: -1: Argument 1 passed to C::f1() must be an instance of A, integer given%s(%d) +0: Argument 1 passed to C::f1() must be an instance of A, integer given%s(%d) in C::f1 (static); -1: Argument 1 passed to C::f2() must be an instance of A, integer given%s(%d) +0: Argument 1 passed to C::f2() must be an instance of A, integer given%s(%d) in C::f2 (static); in C::f2 (static); @@ -171,10 +171,10 @@ in C::f2 (static); ---> Type hints with callback instance method: -1: Argument 1 passed to D::f1() must be an instance of A, integer given%s(%d) +0: Argument 1 passed to D::f1() must be an instance of A, integer given%s(%d) in C::f1 (instance); -1: Argument 1 passed to D::f2() must be an instance of A, integer given%s(%d) +0: Argument 1 passed to D::f2() must be an instance of A, integer given%s(%d) in C::f2 (instance); in C::f2 (instance); |
