Kraken\_Module\Throwable\ThrowableTest::testCaseError_IsHandledByErrorCatchBlock PHP Method

testCaseError_IsHandledByErrorCatchBlock() public method

    public function testCaseError_IsHandledByErrorCatchBlock()
    {
        $throwable = new Error('Error');
        try {
            throw $throwable;
        } catch (Error $ex) {
            $this->assertSame($throwable, $ex);
        } catch (Exception $ex) {
            $this->fail('Errors should no be catched by Exception-block.');
        }
    }