From 4f913a4d4d841616d86a0accabe1f39da40df3df Mon Sep 17 00:00:00 2001 From: Ulf Wendel Date: Wed, 10 Oct 2007 10:07:08 +0000 Subject: [PATCH] Changes to all 01*.phpt tests --- ext/mysqli/tests/010.phpt | 34 +++++++++------ ext/mysqli/tests/011.phpt | 57 ++++++++++++++++++------- ext/mysqli/tests/012.phpt | 57 ++++++++++++++++++------- ext/mysqli/tests/013.phpt | 46 +++++++++++--------- ext/mysqli/tests/014.phpt | 88 +++++++++++++++++++++++++++++---------- ext/mysqli/tests/015.phpt | 41 ++++++++++++------ ext/mysqli/tests/016.phpt | 23 ++++++---- ext/mysqli/tests/017.phpt | 32 ++++++++++---- ext/mysqli/tests/018.phpt | 20 +++++---- ext/mysqli/tests/019.phpt | 67 ++++++++++++++++++++++------- 10 files changed, 333 insertions(+), 132 deletions(-) diff --git a/ext/mysqli/tests/010.phpt b/ext/mysqli/tests/010.phpt index 6b79d62f42..ea9bb2882f 100644 --- a/ext/mysqli/tests/010.phpt +++ b/ext/mysqli/tests/010.phpt @@ -3,26 +3,32 @@ mysqli fetch float values --INI-- precision=12 --SKIPIF-- - + --FILE-- --EXPECT-- array(7) { @@ -57,3 +64,4 @@ array(7) { [6]=> float(888888914608000) } +done! \ No newline at end of file diff --git a/ext/mysqli/tests/011.phpt b/ext/mysqli/tests/011.phpt index 77a157f564..16de67736e 100644 --- a/ext/mysqli/tests/011.phpt +++ b/ext/mysqli/tests/011.phpt @@ -3,27 +3,34 @@ mysqli fetch mixed values --INI-- precision=12 --SKIPIF-- - + --FILE-- ---EXPECT-- +--EXPECTF-- array(8) { [0]=> int(19) @@ -55,3 +63,24 @@ array(8) { [7]=> string(11) "mysql rulez" } +done! +--UEXPECTF-- +array(8) { + [0]=> + int(19) + [1]=> + int(2999) + [2]=> + int(3999) + [3]=> + int(4999999) + [4]=> + float(2345.60009766) + [5]=> + float(5678.89563) + [6]=> + string(6) "foobar" + [7]=> + unicode(11) "mysql rulez" +} +done! \ No newline at end of file diff --git a/ext/mysqli/tests/012.phpt b/ext/mysqli/tests/012.phpt index 9c52f9c3e4..d0c92f67ce 100644 --- a/ext/mysqli/tests/012.phpt +++ b/ext/mysqli/tests/012.phpt @@ -3,27 +3,32 @@ mysqli fetch mixed values 2 --INI-- precision=12 --SKIPIF-- - + --FILE-- ---EXPECT-- +--EXPECTF-- array(8) { [0]=> int(120) @@ -56,3 +62,24 @@ array(8) { [7]=> string(3) "6.7" } +done! +--UEXPECTF-- +array(8) { + [0]=> + int(120) + [1]=> + int(2999) + [2]=> + int(3999) + [3]=> + int(54) + [4]=> + float(2.59999990463) + [5]=> + float(58.89) + [6]=> + string(3) "206" + [7]=> + unicode(3) "6.7" +} +done! \ No newline at end of file diff --git a/ext/mysqli/tests/013.phpt b/ext/mysqli/tests/013.phpt index 60caff5b8a..88c8e0d588 100644 --- a/ext/mysqli/tests/013.phpt +++ b/ext/mysqli/tests/013.phpt @@ -1,52 +1,60 @@ --TEST-- mysqli fetch mixed / mysql_query (may fail when using 4.1 library with 5.x server) --SKIPIF-- - + --FILE-- 40100 && mysqli_get_client_version() < 50000 && - mysqli_get_server_version($link) > 50000) + mysqli_get_server_version($link) > 50000) echo "error (4.1 library with 5.x server)"; else echo "error"; mysqli_close($link); + print "done!"; ?> --EXPECTF-- ok +done! \ No newline at end of file diff --git a/ext/mysqli/tests/014.phpt b/ext/mysqli/tests/014.phpt index d6591fcab4..93c2adca18 100644 --- a/ext/mysqli/tests/014.phpt +++ b/ext/mysqli/tests/014.phpt @@ -1,12 +1,17 @@ --TEST-- -mysqli autocommit/commit/rollback +mysqli autocommit/commit/rollback --SKIPIF-- ---EXPECT-- +--EXPECTF-- Num_of_rows=1 array(2) { [0]=> @@ -67,3 +95,19 @@ array(2) { [1]=> string(4) "egon" } +done! +--UEXPECTF-- +Num_of_rows=1 +array(2) { + [0]=> + unicode(1) "1" + [1]=> + unicode(6) "foobar" +} +array(2) { + [0]=> + unicode(1) "2" + [1]=> + unicode(4) "egon" +} +done! \ No newline at end of file diff --git a/ext/mysqli/tests/015.phpt b/ext/mysqli/tests/015.phpt index 7620f3c435..f68e9aa72a 100644 --- a/ext/mysqli/tests/015.phpt +++ b/ext/mysqli/tests/015.phpt @@ -1,15 +1,16 @@ --TEST-- -mysqli autocommit/commit/rollback with myisam +mysqli autocommit/commit/rollback with innodb --SKIPIF-- - ---EXPECT-- +--EXPECTF-- array(2) { [0]=> - string(1) "2" + string(1) "1" [1]=> - string(4) "egon" + string(6) "foobar" } array(2) { [0]=> @@ -67,3 +69,18 @@ array(2) { [1]=> string(4) "egon" } +done! +--UEXPECTF-- +array(2) { + [0]=> + unicode(1) "1" + [1]=> + unicode(6) "foobar" +} +array(2) { + [0]=> + unicode(1) "2" + [1]=> + unicode(4) "egon" +} +done! \ No newline at end of file diff --git a/ext/mysqli/tests/016.phpt b/ext/mysqli/tests/016.phpt index c61da29ec1..3e058ea69c 100644 --- a/ext/mysqli/tests/016.phpt +++ b/ext/mysqli/tests/016.phpt @@ -1,19 +1,23 @@ --TEST-- mysqli fetch user variable --SKIPIF-- - + --FILE-- ---EXPECT-- +--EXPECTF-- string(6) "foobar" +done! +--UEXPECTF-- +unicode(6) "foobar" +done! diff --git a/ext/mysqli/tests/017.phpt b/ext/mysqli/tests/017.phpt index 866a118a86..1fe24aa3be 100644 --- a/ext/mysqli/tests/017.phpt +++ b/ext/mysqli/tests/017.phpt @@ -1,18 +1,21 @@ --TEST-- mysqli fetch functions --SKIPIF-- - - + --FILE-- ---EXPECT-- +--EXPECTF-- array(3) { [0]=> string(32) "37b51d194a7513e45b56f6524f2d51f2" [1]=> - string(4) "test" + string(%d) "%s" [2]=> string(3) "foo" } +done! +--UEXPECTF-- +array(3) { + [0]=> + string(32) "37b51d194a7513e45b56f6524f2d51f2" + [1]=> + unicode(%d) "%s" + [2]=> + unicode(3) "foo" +} +done! diff --git a/ext/mysqli/tests/018.phpt b/ext/mysqli/tests/018.phpt index 4ba199d866..c5c60c7ae6 100644 --- a/ext/mysqli/tests/018.phpt +++ b/ext/mysqli/tests/018.phpt @@ -1,20 +1,24 @@ --TEST-- mysqli fetch system variables --SKIPIF-- - + --FILE-- --EXPECT-- int(0) +done! \ No newline at end of file diff --git a/ext/mysqli/tests/019.phpt b/ext/mysqli/tests/019.phpt index b5d2e34073..5db5eb0e78 100644 --- a/ext/mysqli/tests/019.phpt +++ b/ext/mysqli/tests/019.phpt @@ -1,28 +1,33 @@ --TEST-- mysqli fetch (bind_param + bind_result) --SKIPIF-- - ---INI-- -precision=14 + --FILE-- ---EXPECT-- +--EXPECTF-- array(11) { [0]=> int(1) @@ -71,3 +79,30 @@ array(11) { [10]=> string(6) "foobar" } +done! +--UEXPECTF-- +array(11) { + [0]=> + int(1) + [1]=> + NULL + [2]=> + NULL + [3]=> + NULL + [4]=> + NULL + [5]=> + float(3.14) + [6]=> + NULL + [7]=> + NULL + [8]=> + NULL + [9]=> + unicode(3) "foo" + [10]=> + unicode(6) "foobar" +} +done! \ No newline at end of file -- 2.50.1