From: Marcus Boerger Date: Sun, 27 Apr 2003 11:29:39 +0000 (+0000) Subject: Add more tests X-Git-Tag: SPL_ALPHA~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88ef12964b1873b0a35f84f39ca0473fd251abb9;p=php Add more tests --- diff --git a/ext/sqlite/tests/sqlite_007.phpt b/ext/sqlite/tests/sqlite_007.phpt new file mode 100755 index 0000000000..b6174dbaca --- /dev/null +++ b/ext/sqlite/tests/sqlite_007.phpt @@ -0,0 +1,49 @@ +--TEST-- +sqlite: Simple insert/select (unbuffered) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +array(6) { + [0]=> + string(10) "2002-01-02" + ["c1"]=> + string(10) "2002-01-02" + [1]=> + string(8) "12:49:00" + ["c2"]=> + string(8) "12:49:00" + [2]=> + NULL + ["c3"]=> + NULL +} +array(3) { + [0]=> + string(10) "2002-01-02" + [1]=> + string(8) "12:49:00" + [2]=> + NULL +} +array(3) { + ["c1"]=> + string(10) "2002-01-02" + ["c2"]=> + string(8) "12:49:00" + ["c3"]=> + NULL +} diff --git a/ext/sqlite/tests/sqlite_008.phpt b/ext/sqlite/tests/sqlite_008.phpt new file mode 100755 index 0000000000..3d6b459f97 --- /dev/null +++ b/ext/sqlite/tests/sqlite_008.phpt @@ -0,0 +1,41 @@ +--TEST-- +sqlite: fetch all +--SKIPIF-- + +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + string(3) "one" +} +array(1) { + [0]=> + string(3) "two" +} +array(1) { + [0]=> + string(5) "three" +} +DONE! diff --git a/ext/sqlite/tests/sqlite_009.phpt b/ext/sqlite/tests/sqlite_009.phpt new file mode 100755 index 0000000000..b0f3d2fff6 --- /dev/null +++ b/ext/sqlite/tests/sqlite_009.phpt @@ -0,0 +1,41 @@ +--TEST-- +sqlite: fetch all (unbuffered) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + string(3) "one" +} +array(1) { + [0]=> + string(3) "two" +} +array(1) { + [0]=> + string(5) "three" +} +DONE!