summaryrefslogtreecommitdiff
path: root/ext/tidy
diff options
context:
space:
mode:
authorJohn Coggeshall <john@php.net>2004-02-05 01:38:59 +0000
committerJohn Coggeshall <john@php.net>2004-02-05 01:38:59 +0000
commitfac5939f42b42a8b37fde405ad862fa6105090f8 (patch)
tree5345aac8c03430aa932ddc6a1d947b7e1e74db18 /ext/tidy
parente92f95346b8c84b3782db5ca36a6eff78f53c56e (diff)
downloadphp-git-fac5939f42b42a8b37fde405ad862fa6105090f8.tar.gz
Updating tests that got left behind when we changed to studlyCaps
and fixed another test
Diffstat (limited to 'ext/tidy')
-rw-r--r--ext/tidy/tests/007.html1
-rw-r--r--ext/tidy/tests/007.phpt2
-rw-r--r--ext/tidy/tests/012.phpt6
-rw-r--r--ext/tidy/tests/013.phpt4
4 files changed, 7 insertions, 6 deletions
diff --git a/ext/tidy/tests/007.html b/ext/tidy/tests/007.html
new file mode 100644
index 0000000000..7dc0357779
--- /dev/null
+++ b/ext/tidy/tests/007.html
@@ -0,0 +1 @@
+<B>testing</I>
diff --git a/ext/tidy/tests/007.phpt b/ext/tidy/tests/007.phpt
index 4b419b56b5..ace934e774 100644
--- a/ext/tidy/tests/007.phpt
+++ b/ext/tidy/tests/007.phpt
@@ -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': ";
diff --git a/ext/tidy/tests/012.phpt b/ext/tidy/tests/012.phpt
index f500019bf9..d4dfa2062e 100644
--- a/ext/tidy/tests/012.phpt
+++ b/ext/tidy/tests/012.phpt
@@ -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);
diff --git a/ext/tidy/tests/013.phpt b/ext/tidy/tests/013.phpt
index 5db0ce1cd8..3b95782431 100644
--- a/ext/tidy/tests/013.phpt
+++ b/ext/tidy/tests/013.phpt
@@ -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>