summaryrefslogtreecommitdiff
path: root/ext/dom/tests/DOMDocument_loadHTML_error2.phpt
blob: 3167c0189034a3366b4b1ef50c4c3327791df88a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
DOMDocument::loadHTML() should fail if empty string provided as input
--CREDITS--
Knut Urdalen <knut@php.net>
--SKIPIF--
<?php
require_once('skipif.inc');
?>
--FILE--
<?php
$doc = new DOMDocument();
$doc->loadHTML('');
?>
--EXPECTF--
Warning: DOMDocument::loadHTML(): Empty string supplied as input in %s on line %d