cvs: php-src /ext/tidy/tests 019.phpt tidy_019.phpt
| From: | Nuno Lopes | Date: | Sat, 29 Apr 2006 12:16:21 +0000 |
| Subject: | cvs: php-src /ext/tidy/tests 019.phpt tidy_019.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-37954@lists.php.net to get a copy of this message | ||
nlopess Sat Apr 29 12:16:21 2006 UTC
Added files:
/php-src/ext/tidy/tests 019.phpt
Removed files:
/php-src/ext/tidy/tests tidy_019.phpt
Log:
rename test to follow the convention and expand it a little
http://cvs.php.net/viewcvs.cgi/php-src/ext/tidy/tests/019.phpt?view=markup&rev=1.1
Index: php-src/ext/tidy/tests/019.phpt
+++ php-src/ext/tidy/tests/019.phpt
--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]->name);
var_dump($x->body()->child[0]->getParent()->name);
?>
--EXPECT--
string(3) "div"
string(4) "body"