summaryrefslogtreecommitdiff
path: root/ext/dom/tests/DOMDocument_loadXML_error6.phpt
blob: 9f22692ed9f9bc1e37a666a5608de864f01fdd8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Test DOMDocument::loadXML() with empty file path
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
// create dom document
$dom = new DOMDocument();
try {
    $dom->loadXML("");
} catch (ValueError $exception) {
    echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
DOMDocument::loadXML(): Argument #1 ($source) must not be empty