コード例 #1
0
ファイル: CommandLoggerTest.php プロジェクト: martyn82/apha
 /**
  * @test
  */
 public function dispatchSuccessfulIsLogged()
 {
     $command = $this->getMockBuilder(Command::class)->getMock();
     $logger = $this->getMockBuilder(LoggerInterface::class)->getMock();
     $logger->expects(self::once())->method('info');
     $commandLogger = new CommandLogger($logger);
     $commandLogger->onDispatchSuccessful($command);
 }
コード例 #2
0
ファイル: LoggingInterceptor.php プロジェクト: martyn82/apha
 /**
  * @param Command $command
  * @return void
  */
 public function onDispatchSuccessful(Command $command)
 {
     $this->logger->onDispatchSuccessful($command);
 }