summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/023.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/simplexml/tests/023.phpt')
-rwxr-xr-xext/simplexml/tests/023.phpt36
1 files changed, 0 insertions, 36 deletions
diff --git a/ext/simplexml/tests/023.phpt b/ext/simplexml/tests/023.phpt
deleted file mode 100755
index 515a1460c9..0000000000
--- a/ext/simplexml/tests/023.phpt
+++ /dev/null
@@ -1,36 +0,0 @@
---TEST--
-SimpleXML: Attributes with entities
---SKIPIF--
-<?php if (!extension_loaded("simplexml")) print "skip"; ?>
---FILE--
-<?php
-
-$xml =<<<EOF
-<?xml version='1.0'?>
-<!DOCTYPE talks SYSTEM "nbsp.dtd" [
-<!ELEMENT root EMPTY>
-<!ATTLIST root attr1 CDATA #IMPLIED>
-<!ENTITY nbsp "&#38;#x00A0;">
-]>
-<root attr='foo&nbsp;bar&nbsp;baz'></root>
-EOF;
-
-$sxe = simplexml_load_string($xml);
-
-var_dump($sxe);
-var_dump($sxe['attr']);
-?>
-===DONE===
---EXPECTF--
-object(SimpleXMLElement)#%d (1) {
- ["@attributes"]=>
- array(1) {
- ["attr"]=>
- string(%d) "foo%sbar%sbaz"
- }
-}
-object(SimpleXMLElement)#%d (1) {
- [0]=>
- string(%d) "foo%sbar%sbaz"
-}
-===DONE===