Example #1
0
 public function testRotatingFileHandlerCanBeAdded()
 {
     $monolog = $this->mock(Logger::class);
     $monolog->shouldReceive('pushHandler')->once()->with(Mock::type(RotatingFileHandler::class));
     $monolog->shouldReceive('pushProcessor')->once();
     $writer = new Writer($monolog);
     $writer->setEventsDispatcher($this->getEventsDispatcher());
     $writer->useDailyFiles(__DIR__, 5);
 }