php-src/ext/tidy/tests/026.phpt
Michael Orlitzky 0e3e132a8a ext/tidy: fix DOCTYPE definitions in expected test output.
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").
2016-07-11 14:05:43 +02:00

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>