Пример #1
0
 public function testFileHandlerCanBeAdded()
 {
     $monolog = $this->mock(Logger::class);
     $monolog->shouldReceive('pushHandler')->once()->with(Mock::type(StreamHandler::class));
     $monolog->shouldReceive('pushProcessor')->once();
     $writer = new Writer($monolog);
     $writer->setEventsDispatcher($this->getEventsDispatcher());
     $writer->useFiles(__DIR__);
 }