php-src/ext/tidy/tests/tidy_019.phpt
2006-03-23 14:22:40 +00:00

13 lines
248 B
PHP

--TEST--
Test getParent()
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
<?php
$x = tidy_parse_string("<body><div>Content</div></body>");
var_dump($x->body()->child[0]->getParent()->name);
?>
--EXPECT--
string(4) "body"