com php-src: add new test to uncoverage SQLite3 method.: ext/sqlite3/tests/sqlite3_busyTimeout.phpt
| From: | Joe Watkins | Date: | Tue, 25 Jul 2017 08:12:34 +0000 |
| Subject: | com php-src: add new test to uncoverage SQLite3 method.: ext/sqlite3/tests/sqlite3_busyTimeout.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98794@lists.php.net to get a copy of this message | ||
Commit: 6347e25c2f6f60fabfb50fa86f7c5f984213513b
Author: marcosptf <marcosptf@yahoo.com.br> Sat, 12 Mar 2016 23:05:37 -0300
Committer: Joe Watkins <krakjoe@php.net> Tue, 25 Jul 2017 09:12:34 +0100
Parents: 00cd671233e8181746ff2853365fb2362dd178e8
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6347e25c2f6f60fabfb50fa86f7c5f984213513b
Log:
add new test to uncoverage SQLite3 method.
Changed paths:
A ext/sqlite3/tests/sqlite3_busyTimeout.phpt
Diff:
diff --git a/ext/sqlite3/tests/sqlite3_busyTimeout.phpt b/ext/sqlite3/tests/sqlite3_busyTimeout.phpt
new file mode 100644
index 0000000..3c7c2dc
--- /dev/null
+++ b/ext/sqlite3/tests/sqlite3_busyTimeout.phpt
@@ -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)