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