1--TEST--
2Test DOMDocument::loadHTMLFile when an empty string is passed
3--DESCRIPTION--
4Verifies that an error message is showed if an empty string is passed as argument
5--CREDITS--
6Antonio Diaz Ruiz <dejalatele@gmail.com>
7--EXTENSIONS--
8dom
9--FILE--
10<?php
11$doc = new DOMDocument();
12try {
13    $result = $doc->loadHTMLFile("");
14} catch (ValueError $e) {
15    echo $e->getMessage() . "\n";
16}
17
18$doc = new DOMDocument();
19try {
20    $result = $doc->loadHTMLFile("text.html\0something");
21} catch (ValueError $e) {
22    echo $e->getMessage() . "\n";
23}
24?>
25--EXPECT--
26DOMDocument::loadHTMLFile(): Argument #1 ($filename) must not be empty
27DOMDocument::loadHTMLFile(): Argument #1 ($filename) must not contain any null bytes
28