Phprest\ErrorHandler\Handler\LogTest::testPhprestException PHP Method

testPhprestException() public method

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