mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Updating tests that got left behind when we changed to studlyCaps
and fixed another test
This commit is contained in:
parent
e92f95346b
commit
fac5939f42
1
ext/tidy/tests/007.html
Normal file
1
ext/tidy/tests/007.html
Normal file
@ -0,0 +1 @@
|
||||
<B>testing</I>
|
@ -6,7 +6,7 @@ Verbose tidy_setopt() / tidy_getopt()
|
||||
tidy.default_config=
|
||||
--FILE--
|
||||
<?php
|
||||
$a = new tidy();
|
||||
$a = new tidy("ext/tidy/tests/007.html");
|
||||
echo "Current Value of 'tidy-mark': ";
|
||||
var_dump($a->getopt("tidy-mark"));
|
||||
echo "Current Value of 'error-file': ";
|
||||
|
@ -10,14 +10,14 @@ Accessing children nodes
|
||||
|
||||
function dump_nodes(tidy_node $node) {
|
||||
|
||||
var_dump($node->has_children());
|
||||
if($node->has_children()) {
|
||||
var_dump($node->hasChildren());
|
||||
if($node->hasChildren()) {
|
||||
|
||||
foreach($node->child as $c) {
|
||||
|
||||
var_dump($c);
|
||||
|
||||
if($c->has_children()) {
|
||||
if($c->hasChildren()) {
|
||||
|
||||
dump_nodes($c);
|
||||
|
||||
|
@ -8,9 +8,9 @@ Parsing a file using constructor
|
||||
--FILE--
|
||||
<?php
|
||||
$tidy = new tidy("ext/tidy/tests/013.html", array("show-body-only"=>true));
|
||||
$tidy->clean_repair();
|
||||
$tidy->cleanRepair();
|
||||
echo $tidy;
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
<b>testing</b>
|
||||
<b>testing</b>
|
||||
|
Loading…
Reference in New Issue
Block a user