Exemplo n.º 1
0
 /**
  * @test
  */
 public function shouldNotInjectLoggerToNotLoggerAwareActionOnExecute()
 {
     $logger = $this->createLoggerMock();
     $extension = new LoggerExtension($logger);
     $context = new Context($this->createGatewayMock(), new \stdClass(), array());
     $context->setAction($this->createActionMock());
     $extension->onExecute($context);
 }
 /**
  * @test
  */
 public function shouldNotInjectLoggerToNotLoggerAwareActionOnExecute()
 {
     $logger = $this->createLoggerMock();
     $extension = new LoggerExtension($logger);
     $extension->onExecute(new \stdClass(), $this->createActionMock());
 }