Annotation of embedaddon/php/ext/dom/tests/DOMDocument_validate_external_dtd.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: DOMDocument::validate() should validate an external DTD declaration
                      3: --CREDITS--
                      4: Knut Urdalen <knut@php.net>
                      5: #PHPTestFest2009 Norway 2009-06-09 \o/
                      6: --SKIPIF--
                      7: <?php
                      8: require_once dirname(__FILE__) .'/skipif.inc';
                      9: ?>
                     10: --FILE--
                     11: <?php
                     12: // reusing existing xml: http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/dom.xml?view=co&content-type=text%2Fplain
                     13: // reusing existing dtd: http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/dom.ent?view=co&content-type=text%2Fplain
                     14: $dom = new DOMDocument('1.0');
                     15: $dom->load(dirname(__FILE__).'/dom.xml');
                     16: var_dump($dom->validate());
                     17: ?>
                     18: --EXPECTF--
                     19: bool(true)

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