1--TEST--
2XMLReader: setSchema Error
3--SKIPIF--
4<?php if (!extension_loaded("xmlreader")) print "skip XMLReader extension required"; ?>
5--FILE--
6<?php
7
8$reader = new XMLReader();
9var_dump($reader->setSchema(''));
10$reader->close();
11
12$reader = new XMLReader();
13var_dump($reader->setSchema('schema-missing-file.xsd'));
14$reader->close();
15
16$reader = new XMLReader();
17var_dump($reader->setSchema('schema-empty.xsd'));
18$reader->close();
19?>
20--EXPECTF--
21
22Warning: XMLReader::setSchema(): Schema data source is required in %s on line %d
23bool(false)
24
25Warning: XMLReader::setSchema(): Unable to set schema. This must be set prior to reading or schema contains errors. in %s on line %d
26bool(false)
27
28Warning: XMLReader::setSchema(): Unable to set schema. This must be set prior to reading or schema contains errors. in %s on line %d
29bool(false)
30