Example #1
0
 public function testMethodsPassCriticalAdditionsToMonolog()
 {
     $monolog = $this->mock(Logger::class);
     $monolog->shouldReceive('critical')->once()->with('foo', []);
     $monolog->shouldReceive('pushProcessor')->once();
     $writer = new Writer($monolog);
     $writer->setEventsDispatcher($this->getEventsDispatcher());
     $writer->critical('foo');
 }