You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
339 B

--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) {
["name"]=>
string(3) "Foo"
}