diff options
author | Xinchen Hui <laruence@php.net> | 2011-09-23 15:08:11 +0000 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2011-09-23 15:08:11 +0000 |
commit | c58f254354666c312e02e5069ebb87687b44df71 (patch) | |
tree | 7a630a769daf838970afaea4b430bbad3f22a351 /tests/classes | |
parent | f5ec360df75f61aa65b3a78ba79f7c40d51776b6 (diff) | |
download | php-git-c58f254354666c312e02e5069ebb87687b44df71.tar.gz |
Improve the warning message of incompatible arguments. (#55719)
And fix tests related.
Diffstat (limited to 'tests/classes')
-rwxr-xr-x | tests/classes/ctor_in_interface_01.phpt | 2 | ||||
-rwxr-xr-x | tests/classes/ctor_in_interface_03.phpt | 2 | ||||
-rwxr-xr-x | tests/classes/ctor_in_interface_04.phpt | 2 | ||||
-rwxr-xr-x | tests/classes/inheritance_003.phpt | 2 | ||||
-rwxr-xr-x | tests/classes/inheritance_004.phpt | 2 | ||||
-rw-r--r-- | tests/classes/method_override_optional_arg_001.phpt | 2 | ||||
-rw-r--r-- | tests/classes/method_override_optional_arg_002.phpt | 2 | ||||
-rw-r--r-- | tests/classes/type_hinting_005a.phpt | 4 | ||||
-rw-r--r-- | tests/classes/type_hinting_005b.phpt | 4 | ||||
-rw-r--r-- | tests/classes/type_hinting_005c.phpt | 4 | ||||
-rw-r--r-- | tests/classes/type_hinting_005d.phpt | 4 |
11 files changed, 15 insertions, 15 deletions
diff --git a/tests/classes/ctor_in_interface_01.phpt b/tests/classes/ctor_in_interface_01.phpt index f6f9b66eab..e5ad30ebcd 100755 --- a/tests/classes/ctor_in_interface_01.phpt +++ b/tests/classes/ctor_in_interface_01.phpt @@ -16,4 +16,4 @@ class implem implements constr ?> --EXPECTF-- -Fatal error: Declaration of implem::__construct() must be compatible with that of constr::__construct() in %s on line %d +Fatal error: Declaration of implem::__construct() must be compatible with constr::__construct() in %s on line %d diff --git a/tests/classes/ctor_in_interface_03.phpt b/tests/classes/ctor_in_interface_03.phpt index 953d6822fd..ac73331207 100755 --- a/tests/classes/ctor_in_interface_03.phpt +++ b/tests/classes/ctor_in_interface_03.phpt @@ -20,4 +20,4 @@ class derived extends implem ?> --EXPECTF-- -Fatal error: Declaration of derived::__construct() must be compatible with that of constr::__construct() in %s on line %d +Fatal error: Declaration of derived::__construct() must be compatible with constr::__construct() in %s on line %d diff --git a/tests/classes/ctor_in_interface_04.phpt b/tests/classes/ctor_in_interface_04.phpt index 0016244c18..94be655b83 100755 --- a/tests/classes/ctor_in_interface_04.phpt +++ b/tests/classes/ctor_in_interface_04.phpt @@ -23,4 +23,4 @@ class derived extends implem ?> --EXPECTF-- -Fatal error: Declaration of derived::__construct() must be compatible with that of constr::__construct() in %s on line %d +Fatal error: Declaration of derived::__construct() must be compatible with constr::__construct() in %s on line %d diff --git a/tests/classes/inheritance_003.phpt b/tests/classes/inheritance_003.phpt index a22e5cce58..1f4eafa537 100755 --- a/tests/classes/inheritance_003.phpt +++ b/tests/classes/inheritance_003.phpt @@ -17,5 +17,5 @@ class B extends A ===DONE=== --EXPECTF-- -Strict Standards: Declaration of B::f() should be compatible with that of A::f() in %sinheritance_003.php on line %d +Strict Standards: Declaration of B::f() should be compatible with A::f($x) in %sinheritance_003.php on line %d ===DONE=== diff --git a/tests/classes/inheritance_004.phpt b/tests/classes/inheritance_004.phpt index 9c81970cc2..d1f5faf5da 100755 --- a/tests/classes/inheritance_004.phpt +++ b/tests/classes/inheritance_004.phpt @@ -17,5 +17,5 @@ class B extends A ===DONE=== --EXPECTF-- -Strict Standards: Declaration of B::f() should be compatible with that of A::f() in %sinheritance_004.php on line %d +Strict Standards: Declaration of B::f() should be compatible with A::f() in %sinheritance_004.php on line %d ===DONE=== diff --git a/tests/classes/method_override_optional_arg_001.phpt b/tests/classes/method_override_optional_arg_001.phpt index 53272fff73..333c29d128 100644 --- a/tests/classes/method_override_optional_arg_001.phpt +++ b/tests/classes/method_override_optional_arg_001.phpt @@ -28,6 +28,6 @@ $b->foo(1); ?> --EXPECTF-- -Strict Standards: Declaration of C::foo() should be compatible with that of A::foo() in %s on line %d +Strict Standards: Declaration of C::foo() should be compatible with A::foo($arg1 = 1) in %s on line %d int(1) int(3) diff --git a/tests/classes/method_override_optional_arg_002.phpt b/tests/classes/method_override_optional_arg_002.phpt index c212b8260d..669a8ca836 100644 --- a/tests/classes/method_override_optional_arg_002.phpt +++ b/tests/classes/method_override_optional_arg_002.phpt @@ -18,5 +18,5 @@ $b->foo(); ?> --EXPECTF-- -Strict Standards: Declaration of B::foo() should be compatible with that of A::foo() in %s on line %d +Strict Standards: Declaration of B::foo() should be compatible with A::foo($arg = 1) in %s on line %d foo diff --git a/tests/classes/type_hinting_005a.phpt b/tests/classes/type_hinting_005a.phpt index d487a44611..5e4c43b8af 100644 --- a/tests/classes/type_hinting_005a.phpt +++ b/tests/classes/type_hinting_005a.phpt @@ -12,7 +12,7 @@ Class D2 extends C { function f(SomeClass $a) {} } ?> ==DONE== --EXPECTF-- -Strict Standards: Declaration of D2::f() should be compatible with that of C::f() in %s on line 8 +Strict Standards: Declaration of D2::f() should be compatible with C::f(array $a) in %s on line 8 Compatible hint. Class hint, should be array. -==DONE==
\ No newline at end of file +==DONE== diff --git a/tests/classes/type_hinting_005b.phpt b/tests/classes/type_hinting_005b.phpt index bc0d7686b5..f13ab957bb 100644 --- a/tests/classes/type_hinting_005b.phpt +++ b/tests/classes/type_hinting_005b.phpt @@ -9,6 +9,6 @@ Class D extends C { function f($a) {} } ?> ==DONE== --EXPECTF-- -Strict Standards: Declaration of D::f() should be compatible with that of C::f() in %s on line 5 +Strict Standards: Declaration of D::f() should be compatible with C::f(array $a) in %s on line 5 No hint, should be array. -==DONE==
\ No newline at end of file +==DONE== diff --git a/tests/classes/type_hinting_005c.phpt b/tests/classes/type_hinting_005c.phpt index d3b72412cd..30a114e2a4 100644 --- a/tests/classes/type_hinting_005c.phpt +++ b/tests/classes/type_hinting_005c.phpt @@ -9,6 +9,6 @@ Class D extends C { function f(array $a) {} } ?> ==DONE== --EXPECTF-- -Strict Standards: Declaration of D::f() should be compatible with that of C::f() in %s on line 5 +Strict Standards: Declaration of D::f() should be compatible with C::f(SomeClass $a) in %s on line 5 Array hint, should be class. -==DONE==
\ No newline at end of file +==DONE== diff --git a/tests/classes/type_hinting_005d.phpt b/tests/classes/type_hinting_005d.phpt index 60dda0ff24..830054d03d 100644 --- a/tests/classes/type_hinting_005d.phpt +++ b/tests/classes/type_hinting_005d.phpt @@ -9,6 +9,6 @@ Class D extends C { function f(array $a) {} } ?> ==DONE== --EXPECTF-- -Strict Standards: Declaration of D::f() should be compatible with that of C::f() in %s on line 5 +Strict Standards: Declaration of D::f() should be compatible with C::f($a) in %s on line 5 Array hint, should be nothing. -==DONE==
\ No newline at end of file +==DONE== |