/** * @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'); }
/** * @param string $alias * * @return \Input\Handler\AbstractHandler */ protected function getInputHandler($alias) { return $this->inputFactory->getHandler($alias); }