1--TEST--
2DomDocument::schemaValidateSource() - string that is not a schema
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
15$result = $doc->schemaValidateSource('string that is not a schema');
16var_dump($result);
17
18?>
19--EXPECTF--
20Warning: DOMDocument::schemaValidateSource(): Entity: line 1: parser error : Start tag expected, '<' not found in %s on line %d
21
22Warning: DOMDocument::schemaValidateSource(): string that is not a schema in %s on line %d
23
24Warning: DOMDocument::schemaValidateSource(): ^ in %s on line %d
25
26Warning: DOMDocument::schemaValidateSource(): Failed to parse the XML resource 'in_memory_buffer'. in %s on line %d
27
28Warning: DOMDocument::schemaValidateSource(): Invalid Schema in %s on line %d
29bool(false)
30