016.phpt 546 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Passing 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. <style type="text/css">
  17. p.c1 {font-weight: bold}
  18. </style>
  19. </head>
  20. <body>
  21. <p class="c1">testing</p>
  22. </body>
  23. </html>