Annotation of embedaddon/php/ext/sqlite3/tests/sqlite3_query_error.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: SQLite3::query parameters
        !             3: --CREDITS--
        !             4: Jachim Coudenys
        !             5: # TestFest 2009 Belgium
        !             6: --SKIPIF--
        !             7: <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
        !             8: --FILE--
        !             9: <?php
        !            10: 
        !            11: $db = new SQLite3(':memory:');
        !            12: echo 'Testing SQLite3 query without parameters' . PHP_EOL;
        !            13: $db->query();
        !            14: 
        !            15: echo 'Testing SQLite3 query with one array parameter' . PHP_EOL;
        !            16: $db->query(array());
        !            17: 
        !            18: echo 'Testing SQLite3 qeury with empty string parameter' . PHP_EOL;
        !            19: var_dump($db->query(''));
        !            20: 
        !            21: echo "Done";
        !            22: ?>
        !            23: --EXPECTF--
        !            24: Testing SQLite3 query without parameters
        !            25: 
        !            26: Warning: SQLite3::query() expects exactly 1 parameter, 0 given in %s on line %d
        !            27: Testing SQLite3 query with one array parameter
        !            28: 
        !            29: Warning: SQLite3::query() expects parameter 1 to be %binary_string_optional%, array given in %s on line %d
        !            30: Testing SQLite3 qeury with empty string parameter
        !            31: bool(false)
        !            32: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>