]> granicus.if.org Git - php/commitdiff
Don't use external xml files
authorMarcus Boerger <helly@php.net>
Sat, 17 Jan 2004 17:24:58 +0000 (17:24 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 17 Jan 2004 17:24:58 +0000 (17:24 +0000)
ext/simplexml/tests/004.phpt
ext/simplexml/tests/004.xml [deleted file]

index 7f01ec1490077b42e927f482519a994cd8fb5c54..b82f66567cea1414be454d46f93342265e48b87e 100755 (executable)
@@ -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 (executable)
index a3ef057..0000000
+++ /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