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

testWarningExceptionErrorLog() public method

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