1--TEST-- 2ReflectionClass::getParentClass() 3--CREDITS-- 4Michelangelo van Dam <dragonbe@gmail.com> 5#testfest roosendaal on 2008-05-10 6--FILE-- 7<?php 8 9class Foo {} 10 11class Bar extends Foo {} 12 13$rc1 = new ReflectionClass("Bar"); 14var_dump($rc1->getParentClass()); 15?> 16--EXPECTF-- 17object(ReflectionClass)#%d (1) { 18 ["name"]=> 19 string(3) "Foo" 20} 21