1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 00:32:23 +01:00
Files
archived-php-src/ext/reflection/tests/ReflectionClass_getParentClass.phpt
2009-04-08 16:08:58 +00:00

20 lines
339 B
PHP

--TEST--
ReflectionClass::getParentClass()
--CREDITS--
Michelangelo van Dam <dragonbe@gmail.com>
#testfest roosendaal on 2008-05-10
--FILE--
<?php
class Foo {}
class Bar extends Foo {}
$rc1 = new ReflectionClass("Bar");
var_dump($rc1->getParentClass());
?>
--EXPECTF--
object(ReflectionClass)#%d (1) {
[u"name"]=>
unicode(3) "Foo"
}