Skip to content

Commit df98edb

Browse files
committed
Test tidy::$value when not null
1 parent df77fee commit df98edb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ext/tidy/tests/023.phpt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ echo "-------\n";
1313

1414
$tidy = new tidy();
1515
$tidy->parseString('<html><?php echo "xpto;" ?></html>');
16+
var_dump($tidy->value);
17+
18+
echo "-------\n";
1619

1720
var_dump(tidy_get_root($tidy)->child[0]->isHtml());
1821
var_dump(tidy_get_root($tidy)->child[0]->child[0]->isPHP());
@@ -32,6 +35,15 @@ object(tidy)#1 (2) {
3235
NULL
3336
}
3437
-------
38+
string(82) "<html>
39+
<?php echo "xpto;" ?>
40+
<head>
41+
<title></title>
42+
</head>
43+
<body>
44+
</body>
45+
</html>"
46+
-------
3547
bool(true)
3648
bool(true)
3749
bool(false)

0 commit comments

Comments
 (0)