--TEST--
-Test getParent()
+tidy_repair_*() and invalid parameters
--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);
+
+$l = 1;
+$s = "";
+$a = array();
+
+tidy_repair_string($s, $l, $l, $l);
+tidy_repair_string($s, $s, $s, $s);
+tidy_repair_string($l, $l, $l ,$l);
+tidy_repair_string($a, $a, $a, $a);
+
+tidy_repair_file($s, $l, $l, $l);
+tidy_repair_file($s, $s, $s, $s);
+tidy_repair_file($l, $l, $l ,$l);
+tidy_repair_file($a, $a, $a, $a);
+
+echo "Done\n";
?>
---EXPECT--
-string(3) "div"
-string(4) "body"
---UEXPECT--
-unicode(3) "div"
-unicode(4) "body"
+--EXPECTF--
+Warning: tidy_repair_string(): Could not load configuration file '1' in %s on line %d
+
+Warning: tidy_repair_string(): Could not set encoding '1' in %s on line %d
+
+Warning: tidy_repair_string(): Could not load configuration file '' in %s on line %d
+
+Warning: tidy_repair_string(): Could not load configuration file '1' in %s on line %d
+
+Warning: tidy_repair_string(): Could not set encoding '1' in %s on line %d
+
+Warning: tidy_repair_string() expects parameter 1 to be string, array given in %s on line %d
+
+Warning: tidy_repair_file() expects parameter 1 to be string, array given in %s on line %d
+Done
+--UEXPECTF--
+Warning: tidy_repair_string(): Could not load configuration file '1' in %s019.php on line 7
+
+Warning: tidy_repair_string(): Could not set encoding '1' in %s019.php on line 7
+
+Warning: tidy_repair_string() expects parameter 4 to be boolean, Unicode string given in %s019.php on line 8
+
+Warning: tidy_repair_string(): Could not load configuration file '1' in %s019.php on line 9
+
+Warning: tidy_repair_string(): Could not set encoding '1' in %s019.php on line 9
+
+Warning: tidy_repair_string() expects parameter 1 to be binary string, array given in %s019.php on line 10
+
+Warning: tidy_repair_file() expects parameter 4 to be boolean, Unicode string given in %s019.php on line 13
+
+Warning: tidy_repair_file() expects parameter 1 to be binary string, array given in %s019.php on line 15
+Done