Browse Source

- Add new tests

migration/RELEASE_1_0_0
Marcus Boerger 20 years ago
parent
commit
78e44d8ab0
  1. 20
      tests/classes/inheritance_003.phpt
  2. 20
      tests/classes/inheritance_004.phpt

20
tests/classes/inheritance_003.phpt

@ -0,0 +1,20 @@
--TEST--
ZE2 method inheritance without interfaces
--FILE--
<?php
class A
{
function f($x) {}
}
class B extends A
{
function f() {}
}
?>
===DONE===
--EXPECTF--
Fatal error: Declaration of B::f() must be compatible with that of A::f() in %sinheritance_003.php on line %d

20
tests/classes/inheritance_004.phpt

@ -0,0 +1,20 @@
--TEST--
ZE2 method inheritance without interfaces
--FILE--
<?php
class A
{
function f() {}
}
class B extends A
{
function f($x) {}
}
?>
===DONE===
--EXPECTF--
Fatal error: Declaration of B::f() must be compatible with that of A::f() in %sinheritance_004.php on line %d
Loading…
Cancel
Save