/** * @test * @author Robert Lemke <*****@*****.**> */ public function getAllImplementationClassNamesForInterfaceReturnsEmptyArrayIfNoClassImplementsTheInterface() { $availableClassNames = array('F3\\FLOW3\\Tests\\Reflection\\Fixture\\DummyInterface3', 'F3\\FLOW3\\Tests\\Reflection\\Fixture\\DummyInterface2', 'F3\\FLOW3\\Tests\\Reflection\\Fixture\\ImplementationOfDummyInterface1', 'F3\\FLOW3\\Tests\\Reflection\\Fixture\\Implementation1OfDummyInterface3', 'F3\\FLOW3\\Tests\\Reflection\\Fixture\\Implementation2OfDummyInterface3'); $reflectionService = new \F3\FLOW3\Reflection\ReflectionService(); $reflectionService->setStatusCache($this->getMock('F3\\FLOW3\\Cache\\Frontend\\StringFrontend', array(), array(), '', FALSE)); $reflectionService->setDataCache($this->getMock('F3\\FLOW3\\Cache\\Frontend\\VariableFrontend', array(), array(), '', FALSE)); $reflectionService->injectSystemLogger($this->getMock('F3\\FLOW3\\Log\\SystemLoggerInterface')); $reflectionService->initialize($availableClassNames); $detectedClassNames = $reflectionService->getAllImplementationClassNamesForInterface('F3\\FLOW3\\Tests\\Reflection\\Fixture\\DummyInterface2'); $this->assertEquals(array(), $detectedClassNames); }