xref: /PHP-5.3/ext/tidy/tests/016.phpt (revision 46745e31)
1--TEST--
2Passing configuration file through tidy_parse_file() (may fail with buggy libtidy)
3--SKIPIF--
4<?php if (!extension_loaded("tidy")) print "skip"; ?>
5--FILE--
6<?php
7        $tidy = tidy_parse_file(dirname(__FILE__)."/016.html", dirname(__FILE__)."/016.tcfg");
8    	tidy_clean_repair($tidy);
9        echo tidy_get_output($tidy);
10?>
11--EXPECT--
12<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
13<html>
14<head>
15<title></title>
16
17<style type="text/css">
18 p.c1 {font-weight: bold}
19</style>
20</head>
21<body>
22<p class="c1">testing</p>
23</body>
24</html>
25