Annotation of embedaddon/php/ext/dom/tests/DOMDocument_schemaValidate_error3.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: DomDocument::schemaValidate() - empty string for schema file name
! 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:
! 15: $result = $doc->schemaValidate('');
! 16: var_dump($result);
! 17:
! 18: ?>
! 19: --EXPECTF--
! 20: Warning: DOMDocument::schemaValidate(): Invalid Schema source in %s.php on line %d
! 21: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>