sqlite3_exec_wrongparams.phpt 377 B

12345678910111213141516
  1. --TEST--
  2. SQLite3::exec test, testing for wrong type 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(array ('a','b','c'), 20090509);
  12. ?>
  13. --EXPECTF--
  14. Warning: SQLite3::exec() expects exactly 1 parameter, 2 given in %s on line %d