diff options
Diffstat (limited to 'ext/dom')
-rw-r--r-- | ext/dom/tests/DOMDocument_loadXML_variation4.phpt | 9 | ||||
-rw-r--r-- | ext/dom/tests/book_with_dtd2.xml | 9 | ||||
-rw-r--r-- | ext/dom/tests/wrong_book_with_dtd2.xml | 9 |
3 files changed, 24 insertions, 3 deletions
diff --git a/ext/dom/tests/DOMDocument_loadXML_variation4.phpt b/ext/dom/tests/DOMDocument_loadXML_variation4.phpt index 5960daac86..4f1ea37c19 100644 --- a/ext/dom/tests/DOMDocument_loadXML_variation4.phpt +++ b/ext/dom/tests/DOMDocument_loadXML_variation4.phpt @@ -21,5 +21,12 @@ EXPECTED_RESULT=1 domdocumentloadxml_test_method_savexml.php --EXPECT-- <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd"> +<!DOCTYPE books [ +<!ENTITY entitest "entity is only for test purposes"> +<!ATTLIST title default CDATA "default title"> +<!ELEMENT books (book)*> +<!ELEMENT book (title , author)> +<!ELEMENT title (#PCDATA)> +<!ELEMENT author (#PCDATA)> +]> <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 index 1b1478d02e..aeb4f0b800 100644 --- a/ext/dom/tests/book_with_dtd2.xml +++ b/ext/dom/tests/book_with_dtd2.xml @@ -1,5 +1,12 @@ <?xml version="1.0" encoding="UTF-8" ?> -<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd"> +<!DOCTYPE books [ +<!ENTITY entitest "entity is only for test purposes"> +<!ATTLIST title default CDATA "default title"> +<!ELEMENT books (book*)> +<!ELEMENT book (title, author)> +<!ELEMENT title (#PCDATA)> +<!ELEMENT author (#PCDATA)> +]> <books> <book> <title>The Grapes of Wrath</title> diff --git a/ext/dom/tests/wrong_book_with_dtd2.xml b/ext/dom/tests/wrong_book_with_dtd2.xml index aad520f9b6..6c49deb1f5 100644 --- a/ext/dom/tests/wrong_book_with_dtd2.xml +++ b/ext/dom/tests/wrong_book_with_dtd2.xml @@ -1,5 +1,12 @@ <?xml version="1.0" encoding="UTF-8" ?> -<!DOCTYPE books SYSTEM "ext/dom/tests/books.dtd"> +<!DOCTYPE books [ +<!ENTITY entitest "entity is only for test purposes"> +<!ATTLIST title default CDATA "default title"> +<!ELEMENT books (book)*> +<!ELEMENT book (title , author)> +<!ELEMENT title (#PCDATA)> +<!ELEMENT author (#PCDATA)> +]> <books> <book> <title>The Grapes of Wrath</title> |