mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ext/tidy: fix non-deterministic expected output in two tests.
Some of the tidy tests expect output that can change. The motivating example is an object "id" that is some integer, but no integer in particular. Those hard-coded values have been changed to accept any integer so that the test suite passes when tidy-html5 is used.
This commit is contained in:
parent
0e3e132a8a
commit
08b10f17f1
2 changed files with 10 additions and 10 deletions
|
@ -11,7 +11,7 @@ var_dump($a->html());
|
|||
var_dump($a->head());
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECTF--
|
||||
object(tidyNode)#2 (8) {
|
||||
["value"]=>
|
||||
string(94) "<html>
|
||||
|
@ -100,7 +100,7 @@ object(tidyNode)#2 (8) {
|
|||
["proprietary"]=>
|
||||
bool(false)
|
||||
["id"]=>
|
||||
int(111)
|
||||
int(%i)
|
||||
["attribute"]=>
|
||||
NULL
|
||||
["child"]=>
|
||||
|
@ -231,7 +231,7 @@ object(tidyNode)#2 (9) {
|
|||
["proprietary"]=>
|
||||
bool(false)
|
||||
["id"]=>
|
||||
int(111)
|
||||
int(%i)
|
||||
["attribute"]=>
|
||||
NULL
|
||||
["child"]=>
|
||||
|
@ -307,7 +307,7 @@ object(tidyNode)#2 (9) {
|
|||
["proprietary"]=>
|
||||
bool(false)
|
||||
["id"]=>
|
||||
int(111)
|
||||
int(%i)
|
||||
["attribute"]=>
|
||||
NULL
|
||||
["child"]=>
|
||||
|
|
|
@ -30,7 +30,7 @@ Accessing children nodes
|
|||
dump_nodes($html);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECTF--
|
||||
bool(true)
|
||||
object(tidyNode)#3 (9) {
|
||||
["value"]=>
|
||||
|
@ -70,7 +70,7 @@ object(tidyNode)#3 (9) {
|
|||
["proprietary"]=>
|
||||
bool(false)
|
||||
["id"]=>
|
||||
int(111)
|
||||
int(%i)
|
||||
["attribute"]=>
|
||||
NULL
|
||||
["child"]=>
|
||||
|
@ -94,7 +94,7 @@ object(tidyNode)#4 (9) {
|
|||
["proprietary"]=>
|
||||
bool(false)
|
||||
["id"]=>
|
||||
int(111)
|
||||
int(%i)
|
||||
["attribute"]=>
|
||||
NULL
|
||||
["child"]=>
|
||||
|
@ -222,7 +222,7 @@ object(tidyNode)#5 (9) {
|
|||
["proprietary"]=>
|
||||
bool(false)
|
||||
["id"]=>
|
||||
int(114)
|
||||
int(%i)
|
||||
["attribute"]=>
|
||||
NULL
|
||||
["child"]=>
|
||||
|
@ -365,7 +365,7 @@ object(tidyNode)#8 (9) {
|
|||
["proprietary"]=>
|
||||
bool(false)
|
||||
["id"]=>
|
||||
int(114)
|
||||
int(%i)
|
||||
["attribute"]=>
|
||||
NULL
|
||||
["child"]=>
|
||||
|
@ -426,7 +426,7 @@ object(tidyNode)#10 (9) {
|
|||
["proprietary"]=>
|
||||
bool(false)
|
||||
["id"]=>
|
||||
int(114)
|
||||
int(%i)
|
||||
["attribute"]=>
|
||||
NULL
|
||||
["child"]=>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue