blob: dc7a1db9012739e48be4d2e4995496a151277d6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--TEST--
DomDocument::schemaValidateSource() - empty string for schema string
--CREDITS--
Daniel Convissor <danielc@php.net>
# TestFest 2009 NYPHP
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$doc = new DOMDocument;
$doc->load(__DIR__."/book.xml");
try {
$doc->schemaValidateSource('');
} catch (ValueError $e) {
echo $e->getMessage() . "\n";
}
?>
--EXPECT--
DOMDocument::schemaValidateSource(): Argument #1 ($source) must not be empty
|