Annotation of embedaddon/php/Zend/tests/bug43200_2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #43200.2 (Interface implementation / inheritence not possible in abstract classes)
! 3: --FILE--
! 4: <?php
! 5:
! 6: interface A {
! 7: function foo();
! 8: }
! 9:
! 10: abstract class B implements A {
! 11: abstract public function foo();
! 12: }
! 13:
! 14: class C extends B {
! 15: public function foo() {
! 16: echo 'works';
! 17: }
! 18: }
! 19:
! 20: $o = new C();
! 21: $o->foo();
! 22:
! 23: ?>
! 24: --EXPECTF--
! 25: works
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>