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--INI--
8assert.bail=true
9--EXTENSIONS--
10dom
11--FILE--
12<?php
13$doc = new DOMDocument();
14try {
15    $result = $doc->loadHTMLFile("");
16} catch (ValueError $e) {
17    echo $e->getMessage() . "\n";
18}
19
20$doc = new DOMDocument();
21try {
22    $result = $doc->loadHTMLFile("text.html\0something");
23} catch (ValueError $e) {
24    echo $e->getMessage() . "\n";
25}
26?>
27--EXPECT--
28DOMDocument::loadHTMLFile(): Argument #1 ($filename) must not be empty
29DOMDocument::loadHTMLFile(): Argument #1 ($filename) must not contain any null bytes
30