1--TEST--
2Dom\HTMLDocument::createFromFile() - local existing file
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/../../../test.html");
9echo $dom->saveHtml(), "\n";
10
11?>
12--EXPECTF--
13Warning: Dom\HTMLDocument::createFromFile(): tree error unexpected-token-in-initial-mode in %s on line %d
14<html><head>
15<title>Hello world</title>
16</head>
17<body>
18This is a not well-formed<br>
19html files with undeclared entities&nbsp;
20
21
22</body></html>
23