Annotation of embedaddon/php/ext/tidy/tests/028.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: tidyNode::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>");
! 8: var_dump($x->body()->child[0]->name);
! 9: var_dump($x->body()->child[0]->getParent()->name);
! 10: var_dump($x->root()->getParent());
! 11: ?>
! 12: --EXPECT--
! 13: string(3) "div"
! 14: string(4) "body"
! 15: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>