/** * @test * @expectedException \Neos\Flow\Http\Component\Exception */ public function createThrowsExceptionIfComponentClassNameDoesNotImplementComponentInterface() { $chainConfiguration = ['foo' => ['component' => 'Foo\\Component\\ClassName']]; $this->mockObjectManager->expects($this->at(0))->method('get')->with('Foo\\Component\\ClassName')->will($this->returnValue(new \stdClass())); $this->componentChainFactory->create($chainConfiguration); }