Annotation of embedaddon/php/Zend/tests/get_parent_class_001.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Testing get_parent_class()
! 3: --FILE--
! 4: <?php
! 5:
! 6: interface ITest {
! 7: function foo();
! 8: }
! 9:
! 10: abstract class bar implements ITest {
! 11: public function foo() {
! 12: var_dump(get_parent_class());
! 13: }
! 14: }
! 15:
! 16: class foo extends bar {
! 17: public function __construct() {
! 18: var_dump(get_parent_class());
! 19: }
! 20: }
! 21:
! 22: $a = new foo;
! 23: $a->foo();
! 24:
! 25: ?>
! 26: --EXPECT--
! 27: string(3) "bar"
! 28: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>