Browse Source

Fixed tests in unicode mode

migration/RELEASE_1_0_0
Hannes Magnusson 20 years ago
parent
commit
6ec968a181
  1. 33
      ext/dba/tests/dba_cdb.phpt
  2. 5
      ext/dba/tests/dba_cdb_make.phpt
  3. 33
      ext/dba/tests/dba_flatfile.phpt
  4. 33
      ext/dba/tests/dba_inifile.phpt

33
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===

5
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"

33
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===

33
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===
Loading…
Cancel
Save