Annotation of embedaddon/php/ext/dom/tests/DOMDocument_schemaValidateSource_error2.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: DomDocument::schemaValidateSource() - non-conforming schema
        !             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: $xsd = file_get_contents(dirname(__FILE__)."/book-non-conforming-schema.xsd");
        !            16: 
        !            17: $result = $doc->schemaValidateSource($xsd);
        !            18: var_dump($result);
        !            19: 
        !            20: ?>
        !            21: --EXPECTF--
        !            22: Warning: DOMDocument::schemaValidateSource(): Element 'books': No matching global declaration available for the validation root. in %s.php on line %d
        !            23: bool(false)

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