public function handle(\Exception $exception) { if ($exception instanceof \ErrorException) { $this->handleErrorException($exception); return; } $this->logger->critical($this->buildLogMessage($exception)); }
public function testInfoExceptionErrorLog() { $this->assertFalse($this->monologHandler->hasInfoRecords()); $this->logHandler->handle(new \ErrorException('test exception', 0, E_STRICT)); $this->assertTrue($this->monologHandler->hasInfoRecords()); }