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

testSimpleException() public method

public testSimpleException ( )
    public function testSimpleException()
    {
        $this->assertFalse($this->monologHandler->hasCriticalRecords());
        $this->logHandler->handle(new \Exception('test exception'));
        $this->assertTrue($this->monologHandler->hasCriticalRecords());
    }