diff options
Diffstat (limited to 'tests/classes/inheritance_003.phpt')
-rw-r--r-- | tests/classes/inheritance_003.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/classes/inheritance_003.phpt b/tests/classes/inheritance_003.phpt new file mode 100644 index 0000000..1f4eafa --- /dev/null +++ b/tests/classes/inheritance_003.phpt @@ -0,0 +1,21 @@ +--TEST-- +ZE2 method inheritance without interfaces +--FILE-- +<?php + +class A +{ + function f($x) {} +} + +class B extends A +{ + function f() {} +} + +?> +===DONE=== +--EXPECTF-- + +Strict Standards: Declaration of B::f() should be compatible with A::f($x) in %sinheritance_003.php on line %d +===DONE=== |