1--TEST--
2SQLite3::query parameters
3--CREDITS--
4Jachim Coudenys
5# TestFest 2009 Belgium
6--SKIPIF--
7<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
8--FILE--
9<?php
10
11$db = new SQLite3(':memory:');
12echo 'Testing SQLite3 query without parameters' . PHP_EOL;
13$db->query();
14
15echo 'Testing SQLite3 query with one array parameter' . PHP_EOL;
16$db->query(array());
17
18echo 'Testing SQLite3 qeury with empty string parameter' . PHP_EOL;
19var_dump($db->query(''));
20
21echo "Done";
22?>
23--EXPECTF--
24Testing SQLite3 query without parameters
25
26Warning: SQLite3::query() expects exactly 1 parameter, 0 given in %s on line %d
27Testing SQLite3 query with one array parameter
28
29Warning: SQLite3::query() expects parameter 1 to be %binary_string_optional%, array given in %s on line %d
30Testing SQLite3 qeury with empty string parameter
31bool(false)
32Done
33