summaryrefslogtreecommitdiff
path: root/ext/sqlite3/tests/sqlite3_exec_wrongparams.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sqlite3/tests/sqlite3_exec_wrongparams.phpt')
-rw-r--r--ext/sqlite3/tests/sqlite3_exec_wrongparams.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/sqlite3/tests/sqlite3_exec_wrongparams.phpt b/ext/sqlite3/tests/sqlite3_exec_wrongparams.phpt
new file mode 100644
index 0000000..c94b521
--- /dev/null
+++ b/ext/sqlite3/tests/sqlite3_exec_wrongparams.phpt
@@ -0,0 +1,16 @@
+--TEST--
+SQLite3::exec test, testing for wrong type parameters
+--CREDITS--
+Michelangelo van Dam
+# Belgian PHP Testfest 2009
+--SKIPIF--
+<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+--FILE--
+<?php
+
+$db = new SQLite3(':memory:');
+$db->exec(array ('a','b','c'), 20090509);
+
+?>
+--EXPECTF--
+Warning: SQLite3::exec() expects exactly 1 parameter, 2 given in %s on line %d