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