]> granicus.if.org Git - php/commitdiff
Tests were fixed.
authorDmitry Stogov <dmitry@php.net>
Mon, 22 Nov 2004 15:14:14 +0000 (15:14 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 22 Nov 2004 15:14:14 +0000 (15:14 +0000)
ext/tidy/tests/005.phpt
ext/tidy/tests/007.phpt
ext/tidy/tests/013.phpt
ext/tidy/tests/015.phpt
ext/tidy/tests/016.phpt

index b8da50721b92a3bf558898417309888ed68eda01..1d3a10c2ffaddf345445670fbff5b93d2e4fa838 100644 (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);
        
 ?>
index d2fbb2ceb4fd96d06e6bc8ec8c1ced8bafc1c659..26867ff3fb277f55752de3e0eb049c369f5b9f71 100644 (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': ";
index 37efa3d69de8bc01c5d25a6ca606e5b8e5c5eb94..8f1ac94ef4a13657382fc77c16f7766232bc71fb 100644 (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;
 
index 080d3db4aa1c00d154890897fe06853bd7bcef21..03018ffa198fd7d429204fa91d9f20950854ca52 100644 (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);
             
index f4f0752601828244be4140c2c8c94f70a30900c8..c2fddce6fee32ad3292e4c24170e843431bf5c13 100644 (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);
 ?>