Forgot to add these tests

This commit is contained in:
John Coggeshall 2004-01-14 06:57:23 +00:00
parent 31f7699a85
commit a06377c32d
4 changed files with 49 additions and 0 deletions

1
ext/tidy/tests/016.html Normal file
View File

@ -0,0 +1 @@
<P><B><FONT SIZE=10 COLOR=#FF0000>testing</FONT></I></P>

27
ext/tidy/tests/016.phpt Normal file
View File

@ -0,0 +1,27 @@
--TEST--
Passing configuration file through tidy_parse_file()
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--POST--
--GET--
--INI--
--FILE--
<?php
$tidy = tidy_parse_file("ext/tidy/tests/016.html", "ext/tidy/tests/016.tcfg");
tidy_clean_repair($tidy);
echo tidy_get_output($tidy);
?>
--EXPECT--
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
<style type="text/css">
p.c1 {font-weight: bold}
</style>
</head>
<body>
<p class="c1">testing</p>
</body>
</html>

1
ext/tidy/tests/016.tcfg Normal file
View File

@ -0,0 +1 @@
clean: yes

20
ext/tidy/tests/017.phpt Normal file
View File

@ -0,0 +1,20 @@
--TEST--
The Tidy Output Buffer Filter
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--POST--
--GET--
--INI--
--FILE--
<?php ob_start("ob_tidyhandler"); ?>
<B>testing</I>
--EXPECT--
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<b>testing</b>
</body>
</html>