public static function assert($test, $message, $code = null)
    {
        if (!is_callable($test)) {
            throw new self('Test for assert is not callable', 500);
        }
        if ($test() === true) {
            throw new static($message, $code);
        }
    }