mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00

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").
24 lines
282 B
PHP
24 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>
|