summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-04-02 22:57:42 (GMT)
committerfoobar <sniper@php.net>2005-04-02 22:57:42 (GMT)
commitb543778fed3947177e7f5d3433c8189cc8ed1a35 (patch)
treeabb66fb041690e410411f7577e8e165a020db8c9 /ext
parentf1b024668ff79861a9d44db29262c7cef5dbb5f7 (diff)
downloadphp-b543778fed3947177e7f5d3433c8189cc8ed1a35.tar.gz
fix tests
Diffstat (limited to 'ext')
-rw-r--r--ext/tidy/tests/010.phpt96
-rw-r--r--ext/tidy/tests/012.phpt168
2 files changed, 231 insertions, 33 deletions
diff --git a/ext/tidy/tests/010.phpt b/ext/tidy/tests/010.phpt
index 2bb66d4..eabbc03 100644
--- a/ext/tidy/tests/010.phpt
+++ b/ext/tidy/tests/010.phpt
@@ -12,7 +12,7 @@ Accessing root, body, html, and head nodes..
?>
--EXPECT--
-object(tidyNode)#2 (5) {
+object(tidyNode)#2 (8) {
["value"]=>
string(94) "<html>
<head>
@@ -25,12 +25,18 @@ object(tidyNode)#2 (5) {
string(0) ""
["type"]=>
int(0)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(1)
+ ["proprietary"]=>
+ bool(false)
["attribute"]=>
NULL
["child"]=>
array(1) {
[0]=>
- &object(tidyNode)#3 (6) {
+ &object(tidyNode)#3 (9) {
["value"]=>
string(94) "<html>
<head>
@@ -43,6 +49,12 @@ object(tidyNode)#2 (5) {
string(4) "html"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(1)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(48)
["attribute"]=>
@@ -50,7 +62,7 @@ object(tidyNode)#2 (5) {
["child"]=>
array(2) {
[0]=>
- &object(tidyNode)#4 (6) {
+ &object(tidyNode)#4 (9) {
["value"]=>
string(31) "<head>
<title></title>
@@ -60,6 +72,12 @@ object(tidyNode)#2 (5) {
string(4) "head"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(7)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(46)
["attribute"]=>
@@ -67,7 +85,7 @@ object(tidyNode)#2 (5) {
["child"]=>
array(1) {
[0]=>
- &object(tidyNode)#5 (6) {
+ &object(tidyNode)#5 (9) {
["value"]=>
string(16) "<title></title>
"
@@ -75,6 +93,12 @@ object(tidyNode)#2 (5) {
string(5) "title"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(57)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(111)
["attribute"]=>
@@ -85,7 +109,7 @@ object(tidyNode)#2 (5) {
}
}
[1]=>
- &object(tidyNode)#6 (6) {
+ &object(tidyNode)#6 (9) {
["value"]=>
string(49) "<body bgcolor="#FFFFFF" alink="#000000">
</body>
@@ -94,6 +118,12 @@ object(tidyNode)#2 (5) {
string(4) "body"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(7)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(16)
["attribute"]=>
@@ -110,7 +140,7 @@ object(tidyNode)#2 (5) {
}
}
}
-object(tidyNode)#2 (6) {
+object(tidyNode)#2 (9) {
["value"]=>
string(49) "<body bgcolor="#FFFFFF" alink="#000000">
</body>
@@ -119,6 +149,12 @@ object(tidyNode)#2 (6) {
string(4) "body"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(7)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(16)
["attribute"]=>
@@ -131,7 +167,7 @@ object(tidyNode)#2 (6) {
["child"]=>
NULL
}
-object(tidyNode)#2 (6) {
+object(tidyNode)#2 (9) {
["value"]=>
string(94) "<html>
<head>
@@ -144,6 +180,12 @@ object(tidyNode)#2 (6) {
string(4) "html"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(1)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(48)
["attribute"]=>
@@ -151,7 +193,7 @@ object(tidyNode)#2 (6) {
["child"]=>
array(2) {
[0]=>
- &object(tidyNode)#3 (6) {
+ &object(tidyNode)#3 (9) {
["value"]=>
string(31) "<head>
<title></title>
@@ -161,6 +203,12 @@ object(tidyNode)#2 (6) {
string(4) "head"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(7)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(46)
["attribute"]=>
@@ -168,7 +216,7 @@ object(tidyNode)#2 (6) {
["child"]=>
array(1) {
[0]=>
- &object(tidyNode)#6 (6) {
+ &object(tidyNode)#6 (9) {
["value"]=>
string(16) "<title></title>
"
@@ -176,6 +224,12 @@ object(tidyNode)#2 (6) {
string(5) "title"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(57)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(111)
["attribute"]=>
@@ -186,7 +240,7 @@ object(tidyNode)#2 (6) {
}
}
[1]=>
- &object(tidyNode)#4 (6) {
+ &object(tidyNode)#4 (9) {
["value"]=>
string(49) "<body bgcolor="#FFFFFF" alink="#000000">
</body>
@@ -195,6 +249,12 @@ object(tidyNode)#2 (6) {
string(4) "body"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(7)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(16)
["attribute"]=>
@@ -209,7 +269,7 @@ object(tidyNode)#2 (6) {
}
}
}
-object(tidyNode)#2 (6) {
+object(tidyNode)#2 (9) {
["value"]=>
string(31) "<head>
<title></title>
@@ -219,6 +279,12 @@ object(tidyNode)#2 (6) {
string(4) "head"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(7)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(46)
["attribute"]=>
@@ -226,7 +292,7 @@ object(tidyNode)#2 (6) {
["child"]=>
array(1) {
[0]=>
- &object(tidyNode)#4 (6) {
+ &object(tidyNode)#4 (9) {
["value"]=>
string(16) "<title></title>
"
@@ -234,6 +300,12 @@ object(tidyNode)#2 (6) {
string(5) "title"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(57)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(111)
["attribute"]=>
diff --git a/ext/tidy/tests/012.phpt b/ext/tidy/tests/012.phpt
index 5cec346..43fff38 100644
--- a/ext/tidy/tests/012.phpt
+++ b/ext/tidy/tests/012.phpt
@@ -32,7 +32,7 @@ Accessing children nodes
?>
--EXPECT--
bool(true)
-object(tidyNode)#3 (6) {
+object(tidyNode)#3 (9) {
["value"]=>
string(31) "<head>
<title></title>
@@ -42,6 +42,12 @@ object(tidyNode)#3 (6) {
string(4) "head"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(7)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(46)
["attribute"]=>
@@ -49,7 +55,7 @@ object(tidyNode)#3 (6) {
["child"]=>
array(1) {
[0]=>
- &object(tidyNode)#4 (6) {
+ &object(tidyNode)#4 (9) {
["value"]=>
string(16) "<title></title>
"
@@ -57,6 +63,12 @@ object(tidyNode)#3 (6) {
string(5) "title"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(87)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(111)
["attribute"]=>
@@ -67,7 +79,7 @@ object(tidyNode)#3 (6) {
}
}
bool(true)
-object(tidyNode)#4 (6) {
+object(tidyNode)#4 (9) {
["value"]=>
string(16) "<title></title>
"
@@ -75,6 +87,12 @@ object(tidyNode)#4 (6) {
string(5) "title"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(87)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(111)
["attribute"]=>
@@ -82,7 +100,7 @@ object(tidyNode)#4 (6) {
["child"]=>
NULL
}
-object(tidyNode)#5 (6) {
+object(tidyNode)#5 (9) {
["value"]=>
string(80) "<body bgcolor="#FFFFFF" alink="#000000">
<b>Hi</b><i>Bye<u>Test</u></i>
@@ -92,6 +110,12 @@ object(tidyNode)#5 (6) {
string(4) "body"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(7)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(16)
["attribute"]=>
@@ -104,13 +128,19 @@ object(tidyNode)#5 (6) {
["child"]=>
array(2) {
[0]=>
- &object(tidyNode)#6 (6) {
+ &object(tidyNode)#6 (9) {
["value"]=>
string(9) "<b>Hi</b>"
["name"]=>
string(1) "b"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(43)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(8)
["attribute"]=>
@@ -118,13 +148,19 @@ object(tidyNode)#5 (6) {
["child"]=>
array(1) {
[0]=>
- &object(tidyNode)#7 (5) {
+ &object(tidyNode)#7 (8) {
["value"]=>
string(2) "Hi"
["name"]=>
string(0) ""
["type"]=>
int(4)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(46)
+ ["proprietary"]=>
+ bool(false)
["attribute"]=>
NULL
["child"]=>
@@ -133,13 +169,19 @@ object(tidyNode)#5 (6) {
}
}
[1]=>
- &object(tidyNode)#8 (6) {
+ &object(tidyNode)#8 (9) {
["value"]=>
string(21) "<i>Bye<u>Test</u></i>"
["name"]=>
string(1) "i"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(52)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(49)
["attribute"]=>
@@ -147,26 +189,38 @@ object(tidyNode)#5 (6) {
["child"]=>
array(2) {
[0]=>
- &object(tidyNode)#9 (5) {
+ &object(tidyNode)#9 (8) {
["value"]=>
string(3) "Bye"
["name"]=>
string(0) ""
["type"]=>
int(4)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(55)
+ ["proprietary"]=>
+ bool(false)
["attribute"]=>
NULL
["child"]=>
NULL
}
[1]=>
- &object(tidyNode)#10 (6) {
+ &object(tidyNode)#10 (9) {
["value"]=>
string(11) "<u>Test</u>"
["name"]=>
string(1) "u"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(58)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(114)
["attribute"]=>
@@ -174,13 +228,19 @@ object(tidyNode)#5 (6) {
["child"]=>
array(1) {
[0]=>
- &object(tidyNode)#11 (5) {
+ &object(tidyNode)#11 (8) {
["value"]=>
string(4) "Test"
["name"]=>
string(0) ""
["type"]=>
int(4)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(61)
+ ["proprietary"]=>
+ bool(false)
["attribute"]=>
NULL
["child"]=>
@@ -193,13 +253,19 @@ object(tidyNode)#5 (6) {
}
}
bool(true)
-object(tidyNode)#6 (6) {
+object(tidyNode)#6 (9) {
["value"]=>
string(9) "<b>Hi</b>"
["name"]=>
string(1) "b"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(43)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(8)
["attribute"]=>
@@ -207,13 +273,19 @@ object(tidyNode)#6 (6) {
["child"]=>
array(1) {
[0]=>
- &object(tidyNode)#7 (5) {
+ &object(tidyNode)#7 (8) {
["value"]=>
string(2) "Hi"
["name"]=>
string(0) ""
["type"]=>
int(4)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(46)
+ ["proprietary"]=>
+ bool(false)
["attribute"]=>
NULL
["child"]=>
@@ -222,25 +294,37 @@ object(tidyNode)#6 (6) {
}
}
bool(true)
-object(tidyNode)#7 (5) {
+object(tidyNode)#7 (8) {
["value"]=>
string(2) "Hi"
["name"]=>
string(0) ""
["type"]=>
int(4)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(46)
+ ["proprietary"]=>
+ bool(false)
["attribute"]=>
NULL
["child"]=>
NULL
}
-object(tidyNode)#8 (6) {
+object(tidyNode)#8 (9) {
["value"]=>
string(21) "<i>Bye<u>Test</u></i>"
["name"]=>
string(1) "i"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(52)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(49)
["attribute"]=>
@@ -248,26 +332,38 @@ object(tidyNode)#8 (6) {
["child"]=>
array(2) {
[0]=>
- &object(tidyNode)#9 (5) {
+ &object(tidyNode)#9 (8) {
["value"]=>
string(3) "Bye"
["name"]=>
string(0) ""
["type"]=>
int(4)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(55)
+ ["proprietary"]=>
+ bool(false)
["attribute"]=>
NULL
["child"]=>
NULL
}
[1]=>
- &object(tidyNode)#10 (6) {
+ &object(tidyNode)#10 (9) {
["value"]=>
string(11) "<u>Test</u>"
["name"]=>
string(1) "u"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(58)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(114)
["attribute"]=>
@@ -275,13 +371,19 @@ object(tidyNode)#8 (6) {
["child"]=>
array(1) {
[0]=>
- &object(tidyNode)#11 (5) {
+ &object(tidyNode)#11 (8) {
["value"]=>
string(4) "Test"
["name"]=>
string(0) ""
["type"]=>
int(4)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(61)
+ ["proprietary"]=>
+ bool(false)
["attribute"]=>
NULL
["child"]=>
@@ -292,25 +394,37 @@ object(tidyNode)#8 (6) {
}
}
bool(true)
-object(tidyNode)#9 (5) {
+object(tidyNode)#9 (8) {
["value"]=>
string(3) "Bye"
["name"]=>
string(0) ""
["type"]=>
int(4)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(55)
+ ["proprietary"]=>
+ bool(false)
["attribute"]=>
NULL
["child"]=>
NULL
}
-object(tidyNode)#10 (6) {
+object(tidyNode)#10 (9) {
["value"]=>
string(11) "<u>Test</u>"
["name"]=>
string(1) "u"
["type"]=>
int(5)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(58)
+ ["proprietary"]=>
+ bool(false)
["id"]=>
int(114)
["attribute"]=>
@@ -318,13 +432,19 @@ object(tidyNode)#10 (6) {
["child"]=>
array(1) {
[0]=>
- &object(tidyNode)#11 (5) {
+ &object(tidyNode)#11 (8) {
["value"]=>
string(4) "Test"
["name"]=>
string(0) ""
["type"]=>
int(4)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(61)
+ ["proprietary"]=>
+ bool(false)
["attribute"]=>
NULL
["child"]=>
@@ -333,13 +453,19 @@ object(tidyNode)#10 (6) {
}
}
bool(true)
-object(tidyNode)#11 (5) {
+object(tidyNode)#11 (8) {
["value"]=>
string(4) "Test"
["name"]=>
string(0) ""
["type"]=>
int(4)
+ ["line"]=>
+ int(1)
+ ["column"]=>
+ int(61)
+ ["proprietary"]=>
+ bool(false)
["attribute"]=>
NULL
["child"]=>