summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-11-22 15:14:14 +0000
committerDmitry Stogov <dmitry@php.net>2004-11-22 15:14:14 +0000
commit71f00b6ab29e152f67b14d5d55c5dcfed944dc31 (patch)
tree1f0043d843460417dff85487af9c340f57b50906
parent3bdc15821f8307eb4b6700b9afdbb947152ec957 (diff)
downloadphp-git-71f00b6ab29e152f67b14d5d55c5dcfed944dc31.tar.gz
Tests were fixed.
-rw-r--r--ext/tidy/tests/005.phpt2
-rw-r--r--ext/tidy/tests/007.phpt2
-rw-r--r--ext/tidy/tests/013.phpt2
-rw-r--r--ext/tidy/tests/015.phpt2
-rw-r--r--ext/tidy/tests/016.phpt3
5 files changed, 5 insertions, 6 deletions
diff --git a/ext/tidy/tests/005.phpt b/ext/tidy/tests/005.phpt
index b8da50721b..1d3a10c2ff 100644
--- a/ext/tidy/tests/005.phpt
+++ b/ext/tidy/tests/005.phpt
@@ -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);
?>
diff --git a/ext/tidy/tests/007.phpt b/ext/tidy/tests/007.phpt
index d2fbb2ceb4..26867ff3fb 100644
--- a/ext/tidy/tests/007.phpt
+++ b/ext/tidy/tests/007.phpt
@@ -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': ";
diff --git a/ext/tidy/tests/013.phpt b/ext/tidy/tests/013.phpt
index 37efa3d69d..8f1ac94ef4 100644
--- a/ext/tidy/tests/013.phpt
+++ b/ext/tidy/tests/013.phpt
@@ -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;
diff --git a/ext/tidy/tests/015.phpt b/ext/tidy/tests/015.phpt
index 080d3db4aa..03018ffa19 100644
--- a/ext/tidy/tests/015.phpt
+++ b/ext/tidy/tests/015.phpt
@@ -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);
diff --git a/ext/tidy/tests/016.phpt b/ext/tidy/tests/016.phpt
index f4f0752601..c2fddce6fe 100644
--- a/ext/tidy/tests/016.phpt
+++ b/ext/tidy/tests/016.phpt
@@ -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);
?>