public function testPhprestException() { $this->assertFalse($this->monologHandler->hasCriticalRecords()); $this->logHandler->handle(new BadRequest(9, ['a detail'])); $this->assertTrue($this->monologHandler->hasCriticalRecords()); }