public getInterfaceMethods ( ) |
public function getInterfaceMethods()
{
$methods = array();
foreach ($this->getInterfaces() as $interface) {
$methods = array_merge($methods, get_class_methods($interface));
}
return array_unique($methods);
}
function testCanSeparateInterfaceMethodsFromOthers() { $reflection = new SimpleReflection('AnyOldImplementation'); $this->assertIdentical($reflection->getMethods(), array('aMethod', 'extraMethod')); $this->assertIdentical($reflection->getInterfaceMethods(), array('aMethod')); }