summaryrefslogtreecommitdiff
path: root/ext/dom/tests/DOMDocument_validate_external_dtd.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-07-02 00:01:20 +0000
committerFelipe Pena <felipe@php.net>2009-07-02 00:01:20 +0000
commitc90594408770315d46f3222a5327863b1993f75e (patch)
tree279dac2b89d8bb66b955b7d94dcfa779541f4471 /ext/dom/tests/DOMDocument_validate_external_dtd.phpt
parent09ca614d5eb3b6650c0a99d8011d0a622a3f37b6 (diff)
downloadphp-git-c90594408770315d46f3222a5327863b1993f75e.tar.gz
- New tests (NorwayUG testfest)
Diffstat (limited to 'ext/dom/tests/DOMDocument_validate_external_dtd.phpt')
-rw-r--r--ext/dom/tests/DOMDocument_validate_external_dtd.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/dom/tests/DOMDocument_validate_external_dtd.phpt b/ext/dom/tests/DOMDocument_validate_external_dtd.phpt
new file mode 100644
index 0000000000..51a044c54a
--- /dev/null
+++ b/ext/dom/tests/DOMDocument_validate_external_dtd.phpt
@@ -0,0 +1,19 @@
+--TEST--
+DOMDocument::validate() should validate an external DTD declaration
+--CREDITS--
+Knut Urdalen <knut@php.net>
+#PHPTestFest2009 Norway 2009-06-09 \o/
+--SKIPIF--
+<?php
+require_once dirname(__FILE__) .'/skipif.inc';
+?>
+--FILE--
+<?php
+// reusing existing xml: http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/dom.xml?view=co&content-type=text%2Fplain
+// reusing existing dtd: http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/dom.ent?view=co&content-type=text%2Fplain
+$dom = new DOMDocument('1.0');
+$dom->load(dirname(__FILE__).'/dom.xml');
+var_dump($dom->validate());
+?>
+--EXPECTF--
+bool(true)