sqlite3_32_changes.phpt 549 B

1234567891011121314151617
  1. --TEST--
  2. SQLite3::changes empty str tests
  3. --CREDITS--
  4. Ward Hus
  5. #@ PHP TESTFEST 2009 (BELGIUM)
  6. --SKIPIF--
  7. <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
  8. --FILE--
  9. <?php
  10. $db = new SQLite3(':memory:');
  11. //$db = new SQLite3('mysqlitedb.db');
  12. $db->exec('CREATE TABLE pageView(id INTEGER PRIMARY KEY, page CHAR(256), access INTEGER(10))');
  13. $db->exec('INSERT INTO pageView (page, access) VALUES (\'test\', \'000000\')');
  14. echo $db->changes("dummy");
  15. ?>
  16. --EXPECTF--
  17. Warning: SQLite3::changes() expects exactly 0 parameters, 1 given in %s on line %d