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