Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $factory = new Factory();
     $this->logger = $factory->create('Active Collab', '1.0.0', 'development', LoggerInterface::LOG_FOR_DEBUG, LoggerInterface::BLACKHOLE);
     $this->assertCount(0, $this->logger->getBuffer());
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->log_formatter = new LineFormatter("%level_name%: %message% %context% %extra%\n");
     $this->log_handler = (new TestHandler())->setFormatter($this->log_formatter);
     $this->log = (new Logger('Active Collab Test'))->pushHandler($this->log_handler);
     $this->error_handler = new ErrorHandler($this->log);
     $this->error_handler->initialize();
 }