create() public method

public create ( array $chainConfiguration ) : ComponentChain
$chainConfiguration array
return ComponentChain
コード例 #1
0
 /**
  * @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);
 }