示例#1
0
 function isSupertype($class, $type)
 {
     $supertypes = array_merge(array($class), static::$reflection->interfacesOf($class), static::$reflection->parentsOf($class));
     return in_array($type, $supertypes);
 }
示例#2
0
 function testCanFindInterfacesOfImp2()
 {
     $this->assertEquals(array('phemto\\A', 'phemto\\B'), $this->cache->interfacesOf('phemto\\Imp2'));
 }