summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xext/simplexml/tests/004.phpt20
-rwxr-xr-xext/simplexml/tests/004.xml19
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