示例#1
0
 /**
  * @expectedException \RuntimeException
  */
 public function testIsDetectingNonExistingHandlerClass()
 {
     $typeHandlerMock = $this->getMockBuilder('Input\\TypeHandler')->disableOriginalConstructor()->getMock();
     $inputFactory = new Factory();
     $inputFactory->setHandlerNamespace('This\\Does\\Not\\Exists');
     $inputFactory->setTypeHandler($typeHandlerMock);
     $inputHandler = $inputFactory->getHandler('simple');
 }
示例#2
0
 /**
  * @param string $alias
  *
  * @return \Input\Handler\AbstractHandler
  */
 protected function getInputHandler($alias)
 {
     return $this->inputFactory->getHandler($alias);
 }