From: Nuno Lopes Date: Sat, 6 May 2006 11:19:37 +0000 (+0000) Subject: fix tests in Unicode mode X-Git-Tag: BEFORE_NEW_OUTPUT_API~294 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7b62e24307cb6f12bc528a239246e17dd49f159;p=php fix tests in Unicode mode --- diff --git a/ext/tidy/tests/010.phpt b/ext/tidy/tests/010.phpt index eabbc0391f..a03ef3d69c 100644 --- a/ext/tidy/tests/010.phpt +++ b/ext/tidy/tests/010.phpt @@ -315,3 +315,307 @@ object(tidyNode)#2 (9) { } } } +--UEXPECT-- +object(tidyNode)#2 (8) { + [u"value"]=> + string(94) " + + + + + +" + [u"name"]=> + string(0) "" + [u"type"]=> + int(0) + [u"line"]=> + int(1) + [u"column"]=> + int(1) + [u"proprietary"]=> + bool(false) + [u"attribute"]=> + NULL + [u"child"]=> + array(1) { + [0]=> + &object(tidyNode)#3 (9) { + [u"value"]=> + string(94) " + + + + + +" + [u"name"]=> + string(4) "html" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(1) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(48) + [u"attribute"]=> + NULL + [u"child"]=> + array(2) { + [0]=> + &object(tidyNode)#4 (9) { + [u"value"]=> + string(31) " + + +" + [u"name"]=> + string(4) "head" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(7) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(46) + [u"attribute"]=> + NULL + [u"child"]=> + array(1) { + [0]=> + &object(tidyNode)#5 (9) { + [u"value"]=> + string(16) " +" + [u"name"]=> + string(5) "title" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(57) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(111) + [u"attribute"]=> + NULL + [u"child"]=> + NULL + } + } + } + [1]=> + &object(tidyNode)#6 (9) { + [u"value"]=> + string(49) " + +" + [u"name"]=> + string(4) "body" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(7) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(16) + [u"attribute"]=> + array(2) { + [u"bgcolor"]=> + string(7) "#FFFFFF" + [u"alink"]=> + string(7) "#000000" + } + [u"child"]=> + NULL + } + } + } + } +} +object(tidyNode)#2 (9) { + [u"value"]=> + string(49) " + +" + [u"name"]=> + string(4) "body" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(7) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(16) + [u"attribute"]=> + array(2) { + [u"bgcolor"]=> + string(7) "#FFFFFF" + [u"alink"]=> + string(7) "#000000" + } + [u"child"]=> + NULL +} +object(tidyNode)#2 (9) { + [u"value"]=> + string(94) " + + + + + +" + [u"name"]=> + string(4) "html" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(1) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(48) + [u"attribute"]=> + NULL + [u"child"]=> + array(2) { + [0]=> + &object(tidyNode)#3 (9) { + [u"value"]=> + string(31) " + + +" + [u"name"]=> + string(4) "head" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(7) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(46) + [u"attribute"]=> + NULL + [u"child"]=> + array(1) { + [0]=> + &object(tidyNode)#6 (9) { + [u"value"]=> + string(16) " +" + [u"name"]=> + string(5) "title" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(57) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(111) + [u"attribute"]=> + NULL + [u"child"]=> + NULL + } + } + } + [1]=> + &object(tidyNode)#4 (9) { + [u"value"]=> + string(49) " + +" + [u"name"]=> + string(4) "body" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(7) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(16) + [u"attribute"]=> + array(2) { + [u"bgcolor"]=> + string(7) "#FFFFFF" + [u"alink"]=> + string(7) "#000000" + } + [u"child"]=> + NULL + } + } +} +object(tidyNode)#2 (9) { + [u"value"]=> + string(31) " + + +" + [u"name"]=> + string(4) "head" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(7) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(46) + [u"attribute"]=> + NULL + [u"child"]=> + array(1) { + [0]=> + &object(tidyNode)#4 (9) { + [u"value"]=> + string(16) " +" + [u"name"]=> + string(5) "title" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(57) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(111) + [u"attribute"]=> + NULL + [u"child"]=> + NULL + } + } +} diff --git a/ext/tidy/tests/011.phpt b/ext/tidy/tests/011.phpt index 2a94616759..538a777710 100644 --- a/ext/tidy/tests/011.phpt +++ b/ext/tidy/tests/011.phpt @@ -19,4 +19,13 @@ array(2) { string(7) "#000000" } Attrib 'bgcolor': #FFFFFF -Attrib 'alink': #000000 \ No newline at end of file +Attrib 'alink': #000000 +--UEXPECT-- +array(2) { + [u"bgcolor"]=> + string(7) "#FFFFFF" + [u"alink"]=> + string(7) "#000000" +} +Attrib 'bgcolor': #FFFFFF +Attrib 'alink': #000000 diff --git a/ext/tidy/tests/012.phpt b/ext/tidy/tests/012.phpt index 43fff38df5..b2298c62a4 100644 --- a/ext/tidy/tests/012.phpt +++ b/ext/tidy/tests/012.phpt @@ -471,3 +471,444 @@ object(tidyNode)#11 (8) { ["child"]=> NULL } +--UEXPECT-- +bool(true) +object(tidyNode)#3 (9) { + [u"value"]=> + string(31) " + + +" + [u"name"]=> + string(4) "head" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(7) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(46) + [u"attribute"]=> + NULL + [u"child"]=> + array(1) { + [0]=> + &object(tidyNode)#4 (9) { + [u"value"]=> + string(16) " +" + [u"name"]=> + string(5) "title" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(87) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(111) + [u"attribute"]=> + NULL + [u"child"]=> + NULL + } + } +} +bool(true) +object(tidyNode)#4 (9) { + [u"value"]=> + string(16) " +" + [u"name"]=> + string(5) "title" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(87) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(111) + [u"attribute"]=> + NULL + [u"child"]=> + NULL +} +object(tidyNode)#5 (9) { + [u"value"]=> + string(80) " +HiByeTest + +" + [u"name"]=> + string(4) "body" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(7) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(16) + [u"attribute"]=> + array(2) { + [u"bgcolor"]=> + string(7) "#FFFFFF" + [u"alink"]=> + string(7) "#000000" + } + [u"child"]=> + array(2) { + [0]=> + &object(tidyNode)#6 (9) { + [u"value"]=> + string(9) "Hi" + [u"name"]=> + string(1) "b" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(43) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(8) + [u"attribute"]=> + NULL + [u"child"]=> + array(1) { + [0]=> + &object(tidyNode)#7 (8) { + [u"value"]=> + string(2) "Hi" + [u"name"]=> + string(0) "" + [u"type"]=> + int(4) + [u"line"]=> + int(1) + [u"column"]=> + int(46) + [u"proprietary"]=> + bool(false) + [u"attribute"]=> + NULL + [u"child"]=> + NULL + } + } + } + [1]=> + &object(tidyNode)#8 (9) { + [u"value"]=> + string(21) "ByeTest" + [u"name"]=> + string(1) "i" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(52) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(49) + [u"attribute"]=> + NULL + [u"child"]=> + array(2) { + [0]=> + &object(tidyNode)#9 (8) { + [u"value"]=> + string(3) "Bye" + [u"name"]=> + string(0) "" + [u"type"]=> + int(4) + [u"line"]=> + int(1) + [u"column"]=> + int(55) + [u"proprietary"]=> + bool(false) + [u"attribute"]=> + NULL + [u"child"]=> + NULL + } + [1]=> + &object(tidyNode)#10 (9) { + [u"value"]=> + string(11) "Test" + [u"name"]=> + string(1) "u" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(58) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(114) + [u"attribute"]=> + NULL + [u"child"]=> + array(1) { + [0]=> + &object(tidyNode)#11 (8) { + [u"value"]=> + string(4) "Test" + [u"name"]=> + string(0) "" + [u"type"]=> + int(4) + [u"line"]=> + int(1) + [u"column"]=> + int(61) + [u"proprietary"]=> + bool(false) + [u"attribute"]=> + NULL + [u"child"]=> + NULL + } + } + } + } + } + } +} +bool(true) +object(tidyNode)#6 (9) { + [u"value"]=> + string(9) "Hi" + [u"name"]=> + string(1) "b" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(43) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(8) + [u"attribute"]=> + NULL + [u"child"]=> + array(1) { + [0]=> + &object(tidyNode)#7 (8) { + [u"value"]=> + string(2) "Hi" + [u"name"]=> + string(0) "" + [u"type"]=> + int(4) + [u"line"]=> + int(1) + [u"column"]=> + int(46) + [u"proprietary"]=> + bool(false) + [u"attribute"]=> + NULL + [u"child"]=> + NULL + } + } +} +bool(true) +object(tidyNode)#7 (8) { + [u"value"]=> + string(2) "Hi" + [u"name"]=> + string(0) "" + [u"type"]=> + int(4) + [u"line"]=> + int(1) + [u"column"]=> + int(46) + [u"proprietary"]=> + bool(false) + [u"attribute"]=> + NULL + [u"child"]=> + NULL +} +object(tidyNode)#8 (9) { + [u"value"]=> + string(21) "ByeTest" + [u"name"]=> + string(1) "i" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(52) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(49) + [u"attribute"]=> + NULL + [u"child"]=> + array(2) { + [0]=> + &object(tidyNode)#9 (8) { + [u"value"]=> + string(3) "Bye" + [u"name"]=> + string(0) "" + [u"type"]=> + int(4) + [u"line"]=> + int(1) + [u"column"]=> + int(55) + [u"proprietary"]=> + bool(false) + [u"attribute"]=> + NULL + [u"child"]=> + NULL + } + [1]=> + &object(tidyNode)#10 (9) { + [u"value"]=> + string(11) "Test" + [u"name"]=> + string(1) "u" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(58) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(114) + [u"attribute"]=> + NULL + [u"child"]=> + array(1) { + [0]=> + &object(tidyNode)#11 (8) { + [u"value"]=> + string(4) "Test" + [u"name"]=> + string(0) "" + [u"type"]=> + int(4) + [u"line"]=> + int(1) + [u"column"]=> + int(61) + [u"proprietary"]=> + bool(false) + [u"attribute"]=> + NULL + [u"child"]=> + NULL + } + } + } + } +} +bool(true) +object(tidyNode)#9 (8) { + [u"value"]=> + string(3) "Bye" + [u"name"]=> + string(0) "" + [u"type"]=> + int(4) + [u"line"]=> + int(1) + [u"column"]=> + int(55) + [u"proprietary"]=> + bool(false) + [u"attribute"]=> + NULL + [u"child"]=> + NULL +} +object(tidyNode)#10 (9) { + [u"value"]=> + string(11) "Test" + [u"name"]=> + string(1) "u" + [u"type"]=> + int(5) + [u"line"]=> + int(1) + [u"column"]=> + int(58) + [u"proprietary"]=> + bool(false) + [u"id"]=> + int(114) + [u"attribute"]=> + NULL + [u"child"]=> + array(1) { + [0]=> + &object(tidyNode)#11 (8) { + [u"value"]=> + string(4) "Test" + [u"name"]=> + string(0) "" + [u"type"]=> + int(4) + [u"line"]=> + int(1) + [u"column"]=> + int(61) + [u"proprietary"]=> + bool(false) + [u"attribute"]=> + NULL + [u"child"]=> + NULL + } + } +} +bool(true) +object(tidyNode)#11 (8) { + [u"value"]=> + string(4) "Test" + [u"name"]=> + string(0) "" + [u"type"]=> + int(4) + [u"line"]=> + int(1) + [u"column"]=> + int(61) + [u"proprietary"]=> + bool(false) + [u"attribute"]=> + NULL + [u"child"]=> + NULL +}