public function testErrorExceptionErrorLog() { $this->assertFalse($this->monologHandler->hasErrorRecords()); $this->logHandler->handle(new \ErrorException('test exception', 0, E_ERROR)); $this->assertTrue($this->monologHandler->hasErrorRecords()); }