1--TEST--
2DOMDocument::loadHTML() should fail if empty string provided as input
3--CREDITS--
4Knut Urdalen <knut@php.net>
5--EXTENSIONS--
6dom
7--FILE--
8<?php
9$doc = new DOMDocument();
10try {
11    $doc->loadHTML('');
12} catch (ValueError $e) {
13    echo $e->getMessage() . "\n";
14}
15?>
16--EXPECT--
17DOMDocument::loadHTML(): Argument #1 ($source) must not be empty
18