Annotation of embedaddon/php/ext/sqlite3/tests/sqlite3result_reset_with_params_fails.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SQLite3Result::reset test, testing an exception is raised when calling reset with 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: $db = new SQLite3(':memory:');
! 11: $db->exec('CREATE TABLE foo (bar STRING)');
! 12: $db->exec("INSERT INTO foo (bar) VALUES ('This is a test')");
! 13: $db->exec("INSERT INTO foo (bar) VALUES ('This is another test')");
! 14:
! 15: $result = $db->query('SELECT bar FROM foo');
! 16: $result->reset(1);
! 17: ?>
! 18: --EXPECTF--
! 19: Warning: SQLite3Result::reset() expects exactly 0 parameters, 1 given in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>