]> granicus.if.org Git - php/commitdiff
Adds 2 new xml files which include the dtd path relative to the base directory for...
authorAntonio Diaz Ruiz <dejalatele@gmail.com>
Mon, 24 Jun 2013 20:39:27 +0000 (22:39 +0200)
committerStanislav Malyshev <stas@php.net>
Sun, 11 Aug 2013 01:02:00 +0000 (18:02 -0700)
It fixs the fail on the load of the dtd in the tests modified by this commit.

ext/dom/tests/DOMDocument_loadXML_variation1.phpt
ext/dom/tests/DOMDocument_loadXML_variation2.phpt
ext/dom/tests/DOMDocument_loadXML_variation4.phpt
ext/dom/tests/book_with_dtd2.xml [new file with mode: 0644]
ext/dom/tests/wrong_book_with_dtd2.xml [new file with mode: 0644]

index eb5c693e42f3b6bcd1d77e6f2327ca57c7f22fba..558137526f27ee5aed9bbb8214ce24b7a7d1cb79 100644 (file)
@@ -13,7 +13,7 @@ assert.bail=true
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --ENV--
-XML_FILE=/book_with_dtd.xml
+XML_FILE=/book_with_dtd2.xml
 LOAD_OPTIONS=LIBXML_DTDLOAD
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
index a1e6e80220e3c2405fecfbd87b840796c7d21808..71f638efc142d97866699b8891c39a3db08536b0 100644 (file)
@@ -13,7 +13,7 @@ assert.bail=true
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --ENV--
-XML_FILE=/wrong_book_with_dtd.xml
+XML_FILE=/wrong_book_with_dtd2.xml
 LOAD_OPTIONS=LIBXML_DTDVALID
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
index 6adefa8414089a3a93c9d604d43a3c486283c2db..5960daac86585bfd8ca8a6bd7cb5fa356e2fcabb 100644 (file)
@@ -14,12 +14,12 @@ assert.bail=true
 --SKIPIF--
 <?php include('skipif.inc'); ?>
 --ENV--
-XML_FILE=/book_with_dtd.xml
+XML_FILE=/book_with_dtd2.xml
 LOAD_OPTIONS=LIBXML_DTDATTR|LIBXML_NOCDATA|LIBXML_NOENT|LIBXML_NOBLANKS
 EXPECTED_RESULT=1
 --FILE_EXTERNAL--
 domdocumentloadxml_test_method_savexml.php
 --EXPECT--
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE books SYSTEM "books.dtd">
+<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd">
 <books><book><title default="default title">The Grapes of Wrath</title><author>John Steinbeck</author></book><book><title default="default title">The Pearl</title><author>John Steinbeck</author></book><book><title default="default title">entity is only for test purposes</title><author>data for test</author></book></books>
diff --git a/ext/dom/tests/book_with_dtd2.xml b/ext/dom/tests/book_with_dtd2.xml
new file mode 100644 (file)
index 0000000..1b1478d
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd">
+<books>
+    <book>
+    <title>The Grapes of Wrath</title>
+    <author>John Steinbeck</author>
+    </book>
+    <book>
+    <title>The Pearl</title>
+    <author>John Steinbeck</author>
+    </book>
+    <book>
+    <title>&entitest;</title>
+    <author><![CDATA[data for test]]></author>
+    </book>
+</books>
diff --git a/ext/dom/tests/wrong_book_with_dtd2.xml b/ext/dom/tests/wrong_book_with_dtd2.xml
new file mode 100644 (file)
index 0000000..aad520f
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd">
+<books>
+    <book>
+    <title>The Grapes of Wrath</title>
+    <author>John Steinbeck</author>
+    <author>John Steinbeck</author>
+    </book>
+    <book>
+    <title>The Pearl</title>
+    <author>John Steinbeck</author>
+    </book>
+</books>