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