Annotation of embedaddon/php/ext/dom/tests/DOMDocument_schemaValidate_error5.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
1.1.1.2 ! misho       2: DomDocument::schemaValidate() - non-existent schema file
1.1       misho       3: --CREDITS--
                      4: Daniel Convissor <danielc@php.net>
                      5: # TestFest 2009 NYPHP
                      6: --SKIPIF--
                      7: <?php require_once('skipif.inc'); ?>
                      8: --FILE--
                      9: <?php
                     10: 
                     11: $doc = new DOMDocument;
                     12: 
                     13: $doc->load(dirname(__FILE__)."/book.xml");
                     14: 
1.1.1.2 ! misho      15: $result = $doc->schemaValidate(dirname(__FILE__)."/non-existent-file");
1.1       misho      16: var_dump($result);
                     17: 
                     18: ?>
                     19: --EXPECTF--
1.1.1.2 ! misho      20: Warning: DOMDocument::schemaValidate(): I/O warning : failed to load external entity "%snon-existent-file" in %s.php on line %d
1.1       misho      21: 
1.1.1.2 ! misho      22: Warning: DOMDocument::schemaValidate(): Failed to locate the main schema resource at '%s/non-existent-file'. in %s.php on line %d
1.1       misho      23: 
                     24: Warning: DOMDocument::schemaValidate(): Invalid Schema in %s.php on line %d
                     25: bool(false)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>