From: Hannes Magnusson Date: Sun, 11 Jun 2006 00:16:04 +0000 (+0000) Subject: Fixed tests in unicode mode X-Git-Tag: RELEASE_1_0_0RC1~2748 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ec968a181272a0f20775b88607034e407d38f58;p=php Fixed tests in unicode mode --- diff --git a/ext/dba/tests/dba_cdb.phpt b/ext/dba/tests/dba_cdb.phpt index f3bf7975ea..47d66a9898 100644 --- a/ext/dba/tests/dba_cdb.phpt +++ b/ext/dba/tests/dba_cdb.phpt @@ -45,3 +45,36 @@ array(5) { string(23) "The last content string" } ===DONE=== +--UEXPECT-- +database handler: cdb +5YYYYY +Content String 2 +array(5) { + [u"key1"]=> + string(16) "Content String 1" + [u"key2"]=> + string(16) "Content String 2" + [u"key3"]=> + string(20) "Third Content String" + [u"key4"]=> + string(22) "Another Content String" + [u"key5"]=> + string(23) "The last content string" +} +--NO-LOCK-- +5YYYYY +Content String 2 +array(5) { + [u"key1"]=> + string(16) "Content String 1" + [u"key2"]=> + string(16) "Content String 2" + [u"key3"]=> + string(20) "Third Content String" + [u"key4"]=> + string(22) "Another Content String" + [u"key5"]=> + string(23) "The last content string" +} +===DONE=== + diff --git a/ext/dba/tests/dba_cdb_make.phpt b/ext/dba/tests/dba_cdb_make.phpt index 4f4b747460..49c8bd28c3 100644 --- a/ext/dba/tests/dba_cdb_make.phpt +++ b/ext/dba/tests/dba_cdb_make.phpt @@ -34,3 +34,8 @@ DBA CDB_MAKE handler test database handler: cdb_make string(32) "12fc5ba2b9dcfef2480e5324eeb5f3e5" string(32) "12fc5ba2b9dcfef2480e5324eeb5f3e5" +--UEXPECT-- +database handler: cdb_make +unicode(32) "12fc5ba2b9dcfef2480e5324eeb5f3e5" +unicode(32) "12fc5ba2b9dcfef2480e5324eeb5f3e5" + diff --git a/ext/dba/tests/dba_flatfile.phpt b/ext/dba/tests/dba_flatfile.phpt index 2e32b8a327..ed1f737302 100644 --- a/ext/dba/tests/dba_flatfile.phpt +++ b/ext/dba/tests/dba_flatfile.phpt @@ -44,3 +44,36 @@ array(3) { string(23) "The last content string" } ===DONE=== +--UEXPECT-- +database handler: flatfile +3NYNYY +Content String 2 +Content 2 replaced +Read during write: not allowed +Content 2 replaced 2nd time +The 6th value +array(3) { + [u"key number 6"]=> + string(13) "The 6th value" + [u"key2"]=> + string(27) "Content 2 replaced 2nd time" + [u"key5"]=> + string(23) "The last content string" +} +--NO-LOCK-- +3NYNYY +Content String 2 +Content 2 replaced +Read during write: not allowed +Content 2 replaced 2nd time +The 6th value +array(3) { + [u"key number 6"]=> + string(13) "The 6th value" + [u"key2"]=> + string(27) "Content 2 replaced 2nd time" + [u"key5"]=> + string(23) "The last content string" +} +===DONE=== + diff --git a/ext/dba/tests/dba_inifile.phpt b/ext/dba/tests/dba_inifile.phpt index 9511a8bb49..c043210c96 100644 --- a/ext/dba/tests/dba_inifile.phpt +++ b/ext/dba/tests/dba_inifile.phpt @@ -44,3 +44,36 @@ array(3) { string(23) "The last content string" } ===DONE=== +--UEXPECT-- +database handler: inifile +3NYNYY +Content String 2 +Content 2 replaced +Read during write: not allowed +Content 2 replaced 2nd time +The 6th value +array(3) { + [u"key number 6"]=> + string(13) "The 6th value" + [u"key2"]=> + string(27) "Content 2 replaced 2nd time" + [u"key5"]=> + string(23) "The last content string" +} +--NO-LOCK-- +3NYNYY +Content String 2 +Content 2 replaced +Read during write: not allowed +Content 2 replaced 2nd time +The 6th value +array(3) { + [u"key number 6"]=> + string(13) "The 6th value" + [u"key2"]=> + string(27) "Content 2 replaced 2nd time" + [u"key5"]=> + string(23) "The last content string" +} +===DONE=== +