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