/**
  * @test
  */
 public function shouldNotLogAnythingOnPreExecute()
 {
     $logger = $this->createLoggerMock();
     $logger->expects($this->never())->method('debug');
     $context = new Context($this->createGatewayMock(), new \stdClass(), array());
     $extension = new LogExecutedActionsExtension($logger);
     $extension->onPreExecute($context);
 }
 /**
  * @test
  */
 public function shouldLogOnExceptionWhenActionNotPassed()
 {
     $logger = $this->createLoggerMock();
     $logger->expects($this->at(0))->method('debug')->with('[Payum] 1# Payment::execute(string) throws exception LogicException');
     $extension = new LogExecutedActionsExtension($logger);
     $extension->onPreExecute('string');
     $extension->onException(new \LogicException(), 'string');
 }