1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/dom/tests/modern/html/encoding/HTMLDocument_fallback_encoding.phpt
Christoph M. Becker d472866f33 Drop erroneous CLEAN section
It doesn't belong to this test case, and may actually interfere with
HTMLDocument_Windows1251.phpt[1].

[1] <https://github.com/php/php-src/actions/runs/10434868303/job/28898227793>
2024-08-17 23:29:33 +02:00

20 lines
338 B
PHP

--TEST--
Dom\HTMLDocument fallback encoding test
--EXTENSIONS--
dom
--FILE--
<?php
$dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/fallback_encoding.html");
var_dump($dom->inputEncoding);
echo $dom->saveHtml();
?>
--EXPECT--
string(5) "UTF-8"
<!DOCTYPE html><html><head>
<meta charset="I don't exist">
</head>
<body>
</body></html>