1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

Tests were fixed.

This commit is contained in:
Dmitry Stogov
2004-11-22 15:12:32 +00:00
parent f7585a2cb3
commit c6fad655a0
5 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ tidy_parse_file()
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
<?php
$a = tidy_parse_file("ext/tidy/tests/005.html");
$a = tidy_parse_file(dirname(__FILE__)."/005.html");
echo tidy_get_output($a);
?>
+1 -1
View File
@@ -6,7 +6,7 @@ Verbose tidy_getopt()
tidy.default_config=
--FILE--
<?php
$a = new tidy("ext/tidy/tests/007.html");
$a = new tidy(dirname(__FILE__)."/007.html");
echo "Current Value of 'tidy-mark': ";
var_dump($a->getopt("tidy-mark"));
echo "Current Value of 'error-file': ";
+1 -1
View File
@@ -4,7 +4,7 @@ Parsing a file using constructor
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
<?php
$tidy = new tidy("ext/tidy/tests/013.html", array("show-body-only"=>true));
$tidy = new tidy(dirname(__FILE__)."/013.html", array("show-body-only"=>true));
$tidy->cleanRepair();
echo $tidy;
+1 -1
View File
@@ -4,7 +4,7 @@ Passing configuration options through tidy_parse_file().
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
<?php
$tidy = tidy_parse_file("ext/tidy/tests/015.html", array('show-body-only'=>true));
$tidy = tidy_parse_file(dirname(__FILE__)."/015.html", array('show-body-only'=>true));
tidy_clean_repair($tidy);
echo tidy_get_output($tidy);
+1 -2
View File
@@ -4,8 +4,7 @@ Passing configuration file through tidy_parse_file()
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
<?php
$path = dirname(__FILE__);
$tidy = tidy_parse_file("{$path}/016.html", "{$path}/016.tcfg");
$tidy = tidy_parse_file(dirname(__FILE__)."/016.html", dirname(__FILE__)."/016.tcfg");
tidy_clean_repair($tidy);
echo tidy_get_output($tidy);
?>