1--TEST--
2SQLite3::prepare test, testing for wrong parameters
3--CREDITS--
4Michelangelo van Dam
5# Belgian PHP Testfest 2009
6--SKIPIF--
7<?php require_once(__DIR__ . '/skipif.inc'); ?>
8--FILE--
9<?php
10
11$db = new SQLite3(':memory:');
12$db->exec('CREATE TABLE foo (id INTEGER, bar STRING)');
13$db->exec("INSERT INTO foo (id, bar) VALUES (1, 'This is a test')");
14
15$stmt = $db->prepare();
16
17?>
18--EXPECTF--
19Warning: SQLite3::prepare() expects exactly 1 parameter, 0 given in %s on line %d
20