Grido\Tests\Helper::assertTypeError PHP Method

assertTypeError() public static method

public static assertTypeError ( $function )
    public static function assertTypeError($function)
    {
        if (PHP_VERSION_ID < 70000) {
            Assert::error($function, E_RECOVERABLE_ERROR);
        } else {
            Assert::exception($function, '\\TypeError');
        }
    }