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

1.1     ! misho       1: --TEST--
        !             2: SQLite3::prepare test, testing for wrong parameters
        !             3: --CREDITS--
        !             4: Michelangelo van Dam
        !             5: # Belgian PHP Testfest 2009
        !             6: --SKIPIF--
        !             7: <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
        !             8: --FILE--
        !             9: <?php
        !            10: 
        !            11: $db = new SQLite3(':memory:');
        !            12: $db->exec('CREATE TABLE foo (id INTEGER, bar STRING)');
        !            13: $db->exec("INSERT INTO foo (id, bar) VALUES (1, 'This is a test')");
        !            14: 
        !            15: $stmt = $db->prepare();
        !            16: 
        !            17: ?>
        !            18: --EXPECTF--
        !            19: Warning: SQLite3::prepare() expects exactly 1 parameter, 0 given in %s on line %d

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