1--TEST--
2DomDocument::schemaValidate() - non-existent schema file
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->schemaValidate(__DIR__."/non-existent-file");
16var_dump($result);
17
18?>
19--EXPECTF--
20Warning: DOMDocument::schemaValidate(): I/O %s : failed to load %s
21
22Warning: DOMDocument::schemaValidate(): Failed to locate the main schema resource at '%snon-existent-file'. in %s on line %d
23
24Warning: DOMDocument::schemaValidate(): Invalid Schema in %s on line %d
25bool(false)
26