public function testBreakOnFailureDisabledLogException() { $logger = $this->getMockBuilder('Psr\\Log\\LoggerInterface')->getMockForAbstractClass(); $logger->expects($this->once())->method('log')->with('ALERT', 'TEST'); $listAction = new TreeExecutor($logger); $actionError = $this->getExceptionAction(); $listAction->addAction($actionError, false); $listAction->execute(array()); }
public function testBreakOnFailureDisabledLogException() { $logger = $this->getMockBuilder('Psr\\Log\\LoggerInterface')->getMockForAbstractClass(); $logger->expects($this->once())->method('log')->with('ALERT', 'TEST'); $listAction = new TreeExecutor($logger); $dispatcher = $this->getMockBuilder('Symfony\\Component\\EventDispatcher\\EventDispatcher')->disableOriginalConstructor()->getMock(); $listAction->setDispatcher($dispatcher); $actionError = $this->getExceptionAction(); $listAction->addAction($actionError, false); $listAction->execute(array()); }