Пример #1
0
 public function testMethodsPassAlertAdditionsToMonolog()
 {
     $monolog = $this->mock(Logger::class);
     $monolog->shouldReceive('alert')->once()->with('foo', []);
     $monolog->shouldReceive('pushProcessor')->once();
     $writer = new Writer($monolog);
     $writer->setEventsDispatcher($this->getEventsDispatcher());
     $writer->alert('foo');
 }