summaryrefslogtreecommitdiff
path: root/ext/sqlite3/tests/sqlite3_loadextension_with_wrong_param.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sqlite3/tests/sqlite3_loadextension_with_wrong_param.phpt')
-rw-r--r--ext/sqlite3/tests/sqlite3_loadextension_with_wrong_param.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/sqlite3/tests/sqlite3_loadextension_with_wrong_param.phpt b/ext/sqlite3/tests/sqlite3_loadextension_with_wrong_param.phpt
new file mode 100644
index 0000000..9811f86
--- /dev/null
+++ b/ext/sqlite3/tests/sqlite3_loadextension_with_wrong_param.phpt
@@ -0,0 +1,18 @@
+--TEST--
+SQLite3::loadExtension test with wrong parameter type
+--CREDITS--
+Thijs Feryn <thijs@feryn.eu>
+#TestFest PHPBelgium 2009
+--SKIPIF--
+<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+--FILE--
+<?php
+$db = new SQLite3(':memory:');
+var_dump($db->loadExtension(array()));
+echo "Done\n";
+?>
+--EXPECTF--
+Warning: SQLite3::loadExtension() expects parameter 1 to be %binary_string_optional%, array given in %s on line %d
+NULL
+Done
+