示例#1
0
 function candidatesFor($interface)
 {
     return array_merge(static::$reflection->concreteSubgraphOf($interface), static::$reflection->implementationsOf($interface));
 }
示例#2
0
 function testCanFindImplementationsFromInterface()
 {
     $this->assertEquals(array('phemto\\Imp1', 'phemto\\Imp2'), $this->cache->implementationsOf('phemto\\A'));
 }