Kraken\_Unit\Throwable\ErrorHandlerTest::testStaticApiHandleError_ThrowsWarning_OnWarningLevelErrors PHP Метод

testStaticApiHandleError_ThrowsWarning_OnWarningLevelErrors() публичный Метод

    public function testStaticApiHandleError_ThrowsWarning_OnWarningLevelErrors($code, $expected)
    {
        try {
            ErrorHandler::handleError($code, $message = 'message', $file = 'file', $line = 20);
            $this->fail('Error or Exception was not thrown.');
        } catch (Error $ex) {
            $this->assertInstanceOf(WarningError::class, $ex);
        }
    }