Dibi\Connection::test PHP Method

test() final public method

Generates and prints SQL query.
final public test ( $args ) : boolean
return boolean
    public final function test($args)
    {
        $args = func_get_args();
        try {
            Helpers::dump($this->translateArgs($args));
            return TRUE;
        } catch (Exception $e) {
            if ($e->getSql()) {
                Helpers::dump($e->getSql());
            } else {
                echo get_class($e) . ': ' . $e->getMessage() . (PHP_SAPI === 'cli' ? "\n" : '<br>');
            }
            return FALSE;
        }
    }