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:
@@ -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);
|
||||
|
||||
?>
|
||||
|
||||
@@ -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': ";
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user