diff options
author | Marcus Boerger <helly@php.net> | 2004-01-17 17:24:58 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-01-17 17:24:58 +0000 |
commit | 253c97fbfe8e0766acee29d30861a51927030b87 (patch) | |
tree | 3899b533b9bac943f452dce0252516e1e19db02b | |
parent | a440ed69353fd3a3365470ff3a0441c5eb6f2fee (diff) | |
download | php-git-253c97fbfe8e0766acee29d30861a51927030b87.tar.gz |
Don't use external xml files
-rwxr-xr-x | ext/simplexml/tests/004.phpt | 20 | ||||
-rwxr-xr-x | ext/simplexml/tests/004.xml | 19 |
2 files changed, 19 insertions, 20 deletions
diff --git a/ext/simplexml/tests/004.phpt b/ext/simplexml/tests/004.phpt index 7f01ec1490..b82f66567c 100755 --- a/ext/simplexml/tests/004.phpt +++ b/ext/simplexml/tests/004.phpt @@ -5,7 +5,25 @@ SimpleXML and CDATA --FILE-- <?php -$sxe = simplexml_load_file(dirname(__FILE__).'/004.xml'); +$sxe = simplexml_load_string(<<<EOF +<?xml version='1.0'?> +<!DOCTYPE sxe SYSTEM "notfound.dtd"> +<sxe id="elem1"> + Plain text. + <elem1 attr1='first'> + <!-- comment --> + <elem2> + <![CDATA[CDATA block]]> + <elem3> + <elem4> + <?test processing instruction ?> + </elem4> + </elem3> + </elem2> + </elem1> +</sxe> +EOF +); print_r($sxe); diff --git a/ext/simplexml/tests/004.xml b/ext/simplexml/tests/004.xml deleted file mode 100755 index a3ef057642..0000000000 --- a/ext/simplexml/tests/004.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version='1.0'?> -<!DOCTYPE sxe SYSTEM "notfound.dtd" [ -<!ENTITY % incent SYSTEM "sxe.ent"> -%incent; -]> -<sxe id="elem1"> - Plain text. - <elem1 attr1='first'> - <!-- comment --> - <elem2> - <![CDATA[CDATA block]]> - <elem3> - <elem4> - <?test processing instruction ?> - </elem4> - </elem3> - </elem2> - </elem1> -</sxe>
\ No newline at end of file |