mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
19 lines
415 B
PHP
19 lines
415 B
PHP
--TEST--
|
|
SQLite3::lastErrorCode test with parameters
|
|
--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->lastErrorCode('invalid argument'));
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Warning: SQLite3::lastErrorCode() expects exactly 0 parameters, 1 given in %s on line %d
|
|
NULL
|
|
Done
|