mirror of
https://github.com/php/php-src.git
synced 2024-09-28 21:36:12 +00:00
0e3e132a8a
The test suite for the tidy extension was written before HTML5 was "standardized". The new tidy-html5 library will output an HTML5 DOCTYPE in the absence of any other information, so the expected test outputs have been updated to accomodate the absense of an HTML version (which is how you declare "HTML5").
25 lines
282 B
PHP
25 lines
282 B
PHP
--TEST--
|
|
tidy.clean_output test
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('tidy')) die('skip'); ?>
|
|
--INI--
|
|
tidy.clean_output=1
|
|
--FILE--
|
|
<html>
|
|
<?php
|
|
|
|
echo '<p>xpto</p>';
|
|
|
|
?>
|
|
</html>
|
|
--EXPECTF--
|
|
<!DOCTYPE html%S>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
<p>xpto</p>
|
|
</body>
|
|
</html>
|