]> granicus.if.org Git - php/commitdiff
Updating tests that got left behind when we changed to studlyCaps
authorJohn Coggeshall <john@php.net>
Thu, 5 Feb 2004 01:38:59 +0000 (01:38 +0000)
committerJohn Coggeshall <john@php.net>
Thu, 5 Feb 2004 01:38:59 +0000 (01:38 +0000)
and fixed another test

ext/tidy/tests/007.html [new file with mode: 0644]
ext/tidy/tests/007.phpt
ext/tidy/tests/012.phpt
ext/tidy/tests/013.phpt

diff --git a/ext/tidy/tests/007.html b/ext/tidy/tests/007.html
new file mode 100644 (file)
index 0000000..7dc0357
--- /dev/null
@@ -0,0 +1 @@
+<B>testing</I>
index 4b419b56b527e46a6b5384f6d9dfee4e8d462488..ace934e774ddd36e7af396339688dca3b7c862c3 100644 (file)
@@ -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': ";
index f500019bf91946b11113e7ec7f04be957b6d8539..d4dfa2062e2a2ea8b6cde8ea0b3df18569ab2c0f 100644 (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);
 
index 5db0ce1cd88848ddac65dc9110928a01f5cc0e1f..3b95782431ce638d9d86cecbdfb6f21be2a850b9 100644 (file)
@@ -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>
\ No newline at end of file
+<b>testing</b>