function testInterfacesListedForSubclass() { $reflection = new SimpleReflection('AnyOldSubclass'); $this->assertEqual($reflection->getInterfaces(), array('AnyOldInterface')); }
function testNoInterfacesForPHP4() { $reflection = new SimpleReflection('AnyOldThing'); $this->assertEqual($reflection->getInterfaces(), array()); }
function testProperlyReflectsTheFinalInterfaceWhenObjectImplementsAnExtendedInterface() { $reflection = new SimpleReflection('AnyDescendentImplementation'); $interfaces = $reflection->getInterfaces(); $this->assertEqual(1, count($interfaces)); $this->assertEqual('AnyDescendentInterface', array_shift($interfaces)); }