1--TEST--
2SQLite3::lastErrorCode test with parameters
3--CREDITS--
4Thijs Feryn <thijs@feryn.eu>
5#TestFest PHPBelgium 2009
6--SKIPIF--
7<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
8--FILE--
9<?php
10
11$db = new SQLite3(':memory:');
12var_dump($db->lastErrorCode('invalid argument'));
13echo "Done\n";
14?>
15--EXPECTF--
16Warning: SQLite3::lastErrorCode() expects exactly 0 parameters, 1 given in %s on line %d
17NULL
18Done
19