xref: /PHP-5.6/ext/tidy/tests/028.phpt (revision 8b9f475a)
1--TEST--
2tidyNode::getParent()
3--SKIPIF--
4<?php if (!extension_loaded("tidy")) print "skip"; ?>
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