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--SKIPIF--
10<?php include('skipif.inc'); ?>
11--FILE--
12<?php
13$doc = new DOMDocument();
14$result = $doc->loadHTMLFile("");
15assert('$result === false');
16$doc = new DOMDocument();
17$result = $doc->loadHTMLFile("text.html\0something");
18assert('$result === false');
19?>
20--EXPECTF--
21%r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile(): Empty string supplied as input %s
22
23%r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile(): Invalid file source %s
24