Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
 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());
 }