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$rc = new ReflectionClass("Bar"); 14$parent = $rc->getParentClass(); 15$grandParent = $parent->getParentClass(); 16var_dump($parent, $grandParent); 17?> 18--EXPECTF-- 19object(ReflectionClass)#%d (1) { 20 ["name"]=> 21 string(3) "Foo" 22} 23bool(false) 24