mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
Forgot to add these tests
This commit is contained in:
parent
31f7699a85
commit
a06377c32d
1
ext/tidy/tests/016.html
Normal file
1
ext/tidy/tests/016.html
Normal file
@ -0,0 +1 @@
|
||||
<P><B><FONT SIZE=10 COLOR=#FF0000>testing</FONT></I></P>
|
27
ext/tidy/tests/016.phpt
Normal file
27
ext/tidy/tests/016.phpt
Normal 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
1
ext/tidy/tests/016.tcfg
Normal file
@ -0,0 +1 @@
|
||||
clean: yes
|
20
ext/tidy/tests/017.phpt
Normal file
20
ext/tidy/tests/017.phpt
Normal 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>
|
Loading…
Reference in New Issue
Block a user