Annotation of embedaddon/php/ext/reflection/tests/ReflectionClass_getParentClass.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: ReflectionClass::getParentClass()
3: --CREDITS--
4: Michelangelo van Dam <dragonbe@gmail.com>
5: #testfest roosendaal on 2008-05-10
6: --FILE--
7: <?php
8:
9: class Foo {}
10:
11: class Bar extends Foo {}
12:
13: $rc1 = new ReflectionClass("Bar");
14: var_dump($rc1->getParentClass());
15: ?>
16:
17: --EXPECTF--
18: object(ReflectionClass)#%d (1) {
19: ["name"]=>
20: string(3) "Foo"
21: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>