From: Ulf Wendel Date: Wed, 11 Jul 2007 11:12:10 +0000 (+0000) Subject: Trying to fix broken tests. The last set of files committed a few weeks ago X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a888bc9bd8f83e57eb35f6fa9d927a4e63350ce;p=php Trying to fix broken tests. The last set of files committed a few weeks ago broke almost all tests. I'll try to merge the CVS with a working set of tests from the mysqlnd development repository. With this first set of changes most tests should run (and pass) again. Note the additional environment variables in connect.inc that you can use to control a test run. More changes to come. --- diff --git a/ext/mysql/tests/001.phpt b/ext/mysql/tests/001.phpt index 4f79ae3efa..de39571904 100755 --- a/ext/mysql/tests/001.phpt +++ b/ext/mysql/tests/001.phpt @@ -4,22 +4,30 @@ mysql connect --FILE-- --EXPECT-- string(2) "11" +done! +--UEXPECTF-- +unicode(2) "11" +done! \ No newline at end of file diff --git a/ext/mysql/tests/002.phpt b/ext/mysql/tests/002.phpt index 64da4fa0d9..3c628c4116 100755 --- a/ext/mysql/tests/002.phpt +++ b/ext/mysql/tests/002.phpt @@ -4,14 +4,13 @@ mysql_fetch_array --FILE-- --EXPECTF-- resource(%d) of type (mysql link) bool(true) bool(true) bool(true) -bool(true) resource(%d) of type (mysql result) array(3) { ["col1"]=> @@ -51,3 +51,27 @@ array(3) { ["col3"]=> string(3) "bar" } +done! +--UEXPECTF-- +resource(%d) of type (mysql link) +bool(true) +bool(true) +bool(true) +resource(%d) of type (mysql result) +array(3) { + [u"col1"]=> + unicode(1) "1" + [u"col2"]=> + unicode(3) "foo" + [u"col3"]=> + unicode(3) "bar" +} +array(3) { + [u"col1"]=> + unicode(1) "2" + [u"col2"]=> + unicode(3) "foo" + [u"col3"]=> + unicode(3) "bar" +} +done! \ No newline at end of file diff --git a/ext/mysql/tests/003.phpt b/ext/mysql/tests/003.phpt index 81a63f3fc8..a113a043e7 100755 --- a/ext/mysql/tests/003.phpt +++ b/ext/mysql/tests/003.phpt @@ -4,8 +4,7 @@ mysql_fetch_object --FILE-- -==DONE== --EXPECTF-- -string(3) "one" -string(3) "two" -string(5) "three" ==stdClass== object(stdClass)#%d (1) { ["a"]=> @@ -81,4 +79,35 @@ object(class24)#%d (1) { ["a"]=> string(5) "three" } -==DONE== +done! +--UEXPECTF-- +==stdClass== +object(stdClass)#%d (1) { + [u"a"]=> + unicode(3) "one" +} +object(stdClass)#%d (1) { + [u"a"]=> + unicode(3) "two" +} +object(stdClass)#%d (1) { + [u"a"]=> + unicode(5) "three" +} +==class24== +class24::__construct +object(class24)#%d (1) { + [u"a"]=> + unicode(3) "one" +} +class24::__construct +object(class24)#%d (1) { + [u"a"]=> + unicode(3) "two" +} +class24::__construct +object(class24)#%d (1) { + [u"a"]=> + unicode(5) "three" +} +done! \ No newline at end of file diff --git a/ext/mysql/tests/connect.inc b/ext/mysql/tests/connect.inc index aa1d30a17e..341ce6eff5 100755 --- a/ext/mysql/tests/connect.inc +++ b/ext/mysql/tests/connect.inc @@ -1,10 +1,64 @@ diff --git a/ext/mysql/tests/skipif.inc b/ext/mysql/tests/skipif.inc index 735be482c7..cd070cb74e 100755 --- a/ext/mysql/tests/skipif.inc +++ b/ext/mysql/tests/skipif.inc @@ -1,11 +1,6 @@ diff --git a/ext/mysql/tests/table.inc b/ext/mysql/tests/table.inc index 5327f94f87..0fcc4ebaff 100644 --- a/ext/mysql/tests/table.inc +++ b/ext/mysql/tests/table.inc @@ -1,4 +1,4 @@ - \ No newline at end of file