]> granicus.if.org Git - php/commitdiff
add new test to uncoverage SQLite3 method.
authormarcosptf <marcosptf@yahoo.com.br>
Sun, 13 Mar 2016 02:05:37 +0000 (23:05 -0300)
committerJoe Watkins <krakjoe@php.net>
Tue, 25 Jul 2017 08:12:34 +0000 (09:12 +0100)
ext/sqlite3/tests/sqlite3_busyTimeout.phpt [new file with mode: 0644]

diff --git a/ext/sqlite3/tests/sqlite3_busyTimeout.phpt b/ext/sqlite3/tests/sqlite3_busyTimeout.phpt
new file mode 100644 (file)
index 0000000..3c7c2dc
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+public bool SQLite3::busyTimeout ( int $msecs );
+--CREDITS--
+marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
+--XFAILIF--
+<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+--FILE--
+<?php
+require_once(dirname(__FILE__) . '/new_db.inc');
+var_dump($db->busyTimeout(0));
+var_dump($db->busyTimeout(null));
+var_dump($db->busyTimeout(-1000));
+var_dump($db->busyTimeout(1000));
+$db->close();
+?>
+--EXPECT--
+bool(true)
+bool(true)
+bool(true)
+bool(true)