xref: /PHP-8.2/ext/tidy/tests/028.phpt (revision 7f2f0c00)
1--TEST--
2tidyNode::getParent()
3--EXTENSIONS--
4tidy
5--FILE--
6<?php
7$x = tidy_parse_string("<body><div>Content</div></body>");
8var_dump($x->body()->child[0]->name);
9var_dump($x->body()->child[0]->getParent()->name);
10var_dump($x->root()->getParent());
11?>
12--EXPECT--
13string(3) "div"
14string(4) "body"
15NULL
16