1--TEST-- 2Test DOMDocument::loadHTMLFile when an empty document is loaded 3--DESCRIPTION-- 4Verifies that an warning message is showed if an empty document is loaded 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(dirname(__FILE__) . "/empty.html"); 15assert($result === true); 16?> 17--EXPECTF-- 18%r(PHP ){0,1}%rWarning: DOMDocument::loadHTMLFile(): Document is empty %s 19