summaryrefslogtreecommitdiff
path: root/ext/simplexml
diff options
context:
space:
mode:
Diffstat (limited to 'ext/simplexml')
-rw-r--r--ext/simplexml/tests/000.phpt2
-rw-r--r--ext/simplexml/tests/001-mb.phpt2
-rw-r--r--ext/simplexml/tests/001.phpt2
-rw-r--r--ext/simplexml/tests/002.phpt2
-rw-r--r--ext/simplexml/tests/003.phpt2
-rw-r--r--ext/simplexml/tests/004.phpt2
-rw-r--r--ext/simplexml/tests/005.phpt2
-rw-r--r--ext/simplexml/tests/006.phpt2
-rw-r--r--ext/simplexml/tests/007.phpt2
-rw-r--r--ext/simplexml/tests/008.phpt8
-rw-r--r--ext/simplexml/tests/009.phpt4
-rw-r--r--ext/simplexml/tests/009b.phpt4
-rw-r--r--ext/simplexml/tests/010.phpt2
-rw-r--r--ext/simplexml/tests/011.phpt4
-rw-r--r--ext/simplexml/tests/012.phpt4
-rw-r--r--ext/simplexml/tests/013.phpt4
-rw-r--r--ext/simplexml/tests/014.phpt2
-rw-r--r--ext/simplexml/tests/014a.phpt2
-rw-r--r--ext/simplexml/tests/014b.phpt2
-rw-r--r--ext/simplexml/tests/015.phpt2
-rw-r--r--ext/simplexml/tests/016.phpt2
-rw-r--r--ext/simplexml/tests/016a.phpt2
-rw-r--r--ext/simplexml/tests/018.phpt2
-rw-r--r--ext/simplexml/tests/019.phpt2
-rw-r--r--ext/simplexml/tests/020.phpt2
-rw-r--r--ext/simplexml/tests/021.phpt2
-rw-r--r--ext/simplexml/tests/022.phpt2
-rw-r--r--ext/simplexml/tests/023.phpt2
-rw-r--r--ext/simplexml/tests/026.phpt2
-rw-r--r--ext/simplexml/tests/027.phpt2
-rw-r--r--ext/simplexml/tests/028.phpt2
-rw-r--r--ext/simplexml/tests/029.phpt2
-rw-r--r--ext/simplexml/tests/030.phpt2
-rw-r--r--ext/simplexml/tests/031.phpt2
-rw-r--r--ext/simplexml/tests/032.phpt2
-rw-r--r--ext/simplexml/tests/SimpleXMLElement_addAttribute_basic.phpt6
-rw-r--r--ext/simplexml/tests/SimpleXMLElement_xpath.phpt2
-rw-r--r--ext/simplexml/tests/bug24392.phpt2
-rw-r--r--ext/simplexml/tests/bug36611.phpt2
-rw-r--r--ext/simplexml/tests/bug38347.phpt2
-rw-r--r--ext/simplexml/tests/bug38354.phpt4
-rw-r--r--ext/simplexml/tests/bug38406.phpt2
-rw-r--r--ext/simplexml/tests/bug38424.phpt2
-rw-r--r--ext/simplexml/tests/bug39662.phpt2
-rw-r--r--ext/simplexml/tests/bug39760.phpt2
-rw-r--r--ext/simplexml/tests/bug40451.phpt2
-rw-r--r--ext/simplexml/tests/bug41175.phpt2
-rw-r--r--ext/simplexml/tests/bug46047.phpt2
-rw-r--r--ext/simplexml/tests/bug46048.phpt2
-rw-r--r--ext/simplexml/tests/bug51615.phpt2
-rw-r--r--ext/simplexml/tests/feature55218.phpt2
-rw-r--r--ext/simplexml/tests/profile01.phpt2
-rw-r--r--ext/simplexml/tests/profile02.phpt2
-rw-r--r--ext/simplexml/tests/profile03.phpt2
-rw-r--r--ext/simplexml/tests/profile04.phpt2
-rw-r--r--ext/simplexml/tests/simplexml_import_dom.phpt2
-rw-r--r--ext/simplexml/tests/simplexml_load_file.phpt6
-rw-r--r--ext/simplexml/tests/sxe_001.phpt2
-rw-r--r--ext/simplexml/tests/sxe_002.phpt4
-rw-r--r--ext/simplexml/tests/sxe_003.phpt4
-rw-r--r--ext/simplexml/tests/sxe_004.phpt4
-rw-r--r--ext/simplexml/tests/sxe_005.phpt4
62 files changed, 79 insertions, 79 deletions
diff --git a/ext/simplexml/tests/000.phpt b/ext/simplexml/tests/000.phpt
index 51dbe3b5ec..a9344009a2 100644
--- a/ext/simplexml/tests/000.phpt
+++ b/ext/simplexml/tests/000.phpt
@@ -3,7 +3,7 @@ SimpleXML: var_dump()
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$sxe = simplexml_load_file(dirname(__FILE__).'/000.xml');
diff --git a/ext/simplexml/tests/001-mb.phpt b/ext/simplexml/tests/001-mb.phpt
index ee4d6f085f..ce358d3328 100644
--- a/ext/simplexml/tests/001-mb.phpt
+++ b/ext/simplexml/tests/001-mb.phpt
@@ -3,7 +3,7 @@ SimpleXML: Simple document
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
var_dump(simplexml_load_file(dirname(__FILE__).'/sxe私はガラスを食べられます.xml'));
diff --git a/ext/simplexml/tests/001.phpt b/ext/simplexml/tests/001.phpt
index 0be77710e5..7f37870efa 100644
--- a/ext/simplexml/tests/001.phpt
+++ b/ext/simplexml/tests/001.phpt
@@ -3,7 +3,7 @@ SimpleXML: Simple document
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
var_dump(simplexml_load_file(dirname(__FILE__).'/sxe.xml'));
diff --git a/ext/simplexml/tests/002.phpt b/ext/simplexml/tests/002.phpt
index 4f1f6b6224..1d8ba4032a 100644
--- a/ext/simplexml/tests/002.phpt
+++ b/ext/simplexml/tests/002.phpt
@@ -3,7 +3,7 @@ SimpleXML: clone
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/003.phpt b/ext/simplexml/tests/003.phpt
index 105f616d60..5b989b85d4 100644
--- a/ext/simplexml/tests/003.phpt
+++ b/ext/simplexml/tests/003.phpt
@@ -3,7 +3,7 @@ SimpleXML: Entities
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/004.phpt b/ext/simplexml/tests/004.phpt
index 21cb5469e0..ffb4db0db6 100644
--- a/ext/simplexml/tests/004.phpt
+++ b/ext/simplexml/tests/004.phpt
@@ -3,7 +3,7 @@ SimpleXML: CDATA
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$sxe = simplexml_load_string(<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/005.phpt b/ext/simplexml/tests/005.phpt
index 1411065435..ee8cd1ff83 100644
--- a/ext/simplexml/tests/005.phpt
+++ b/ext/simplexml/tests/005.phpt
@@ -3,7 +3,7 @@ SimpleXML: Text data
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$sxe = simplexml_load_string(<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/006.phpt b/ext/simplexml/tests/006.phpt
index 72ad0c8089..bf4270f449 100644
--- a/ext/simplexml/tests/006.phpt
+++ b/ext/simplexml/tests/006.phpt
@@ -3,7 +3,7 @@ SimpleXML: foreach
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$sxe = simplexml_load_string(<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/007.phpt b/ext/simplexml/tests/007.phpt
index 51d7a847f7..065e794c48 100644
--- a/ext/simplexml/tests/007.phpt
+++ b/ext/simplexml/tests/007.phpt
@@ -3,7 +3,7 @@ SimpleXML: Attributes
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/008.phpt b/ext/simplexml/tests/008.phpt
index f6c41f43e5..dba2df58c7 100644
--- a/ext/simplexml/tests/008.phpt
+++ b/ext/simplexml/tests/008.phpt
@@ -1,9 +1,9 @@
--TEST--
-SimpleXML: XPath
+SimpleXML: XPath
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version='1.0'?>
@@ -25,9 +25,9 @@ EOF;
$sxe = simplexml_load_string($xml);
var_dump($sxe->xpath("elem1/elem2/elem3/elem4"));
-//valid expression
+//valid expression
var_dump($sxe->xpath("***"));
-//invalid expression
+//invalid expression
var_dump($sxe->xpath("**"));
?>
--EXPECTF--
diff --git a/ext/simplexml/tests/009.phpt b/ext/simplexml/tests/009.phpt
index a76f3d1116..2800f3add9 100644
--- a/ext/simplexml/tests/009.phpt
+++ b/ext/simplexml/tests/009.phpt
@@ -1,9 +1,9 @@
--TEST--
-SimpleXML: foreach
+SimpleXML: foreach
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$sxe = simplexml_load_string(<<<EOF
<?xml version='1.0'?>
<!DOCTYPE sxe SYSTEM "notfound.dtd">
diff --git a/ext/simplexml/tests/009b.phpt b/ext/simplexml/tests/009b.phpt
index dba300c72f..fd920e2e26 100644
--- a/ext/simplexml/tests/009b.phpt
+++ b/ext/simplexml/tests/009b.phpt
@@ -1,9 +1,9 @@
--TEST--
-SimpleXML: foreach
+SimpleXML: foreach
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$sxe = simplexml_load_string(<<<EOF
<?xml version='1.0'?>
<!DOCTYPE sxe SYSTEM "notfound.dtd">
diff --git a/ext/simplexml/tests/010.phpt b/ext/simplexml/tests/010.phpt
index 267780905b..63daf800d1 100644
--- a/ext/simplexml/tests/010.phpt
+++ b/ext/simplexml/tests/010.phpt
@@ -3,7 +3,7 @@ SimpleXML: Simple Inheritance
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
class simplexml_inherited extends SimpleXMLElement
{
diff --git a/ext/simplexml/tests/011.phpt b/ext/simplexml/tests/011.phpt
index 74ea4705ca..1d5c193f3b 100644
--- a/ext/simplexml/tests/011.phpt
+++ b/ext/simplexml/tests/011.phpt
@@ -1,11 +1,11 @@
--TEST--
SimpleXML: echo/print
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('simplexml')) print 'skip';
?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version="1.0" encoding="ISO-8859-1" ?>
diff --git a/ext/simplexml/tests/012.phpt b/ext/simplexml/tests/012.phpt
index abbb10b8d3..598aa3c17a 100644
--- a/ext/simplexml/tests/012.phpt
+++ b/ext/simplexml/tests/012.phpt
@@ -1,11 +1,11 @@
--TEST--
SimpleXML: Attribute creation
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('simplexml')) print 'skip';
?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version="1.0" encoding="ISO-8859-1" ?>
diff --git a/ext/simplexml/tests/013.phpt b/ext/simplexml/tests/013.phpt
index 56c57dfbc2..cf58461451 100644
--- a/ext/simplexml/tests/013.phpt
+++ b/ext/simplexml/tests/013.phpt
@@ -1,11 +1,11 @@
--TEST--
SimpleXML: Split text content
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('simplexml')) print 'skip';
?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version="1.0" encoding="ISO-8859-1" ?>
diff --git a/ext/simplexml/tests/014.phpt b/ext/simplexml/tests/014.phpt
index d1d736e7b5..b0c1dd952f 100644
--- a/ext/simplexml/tests/014.phpt
+++ b/ext/simplexml/tests/014.phpt
@@ -3,7 +3,7 @@ SimpleXML: adding/removing attributes (direct)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people>
<person name="Joe"></person>
diff --git a/ext/simplexml/tests/014a.phpt b/ext/simplexml/tests/014a.phpt
index 649828b4dd..f778c25f12 100644
--- a/ext/simplexml/tests/014a.phpt
+++ b/ext/simplexml/tests/014a.phpt
@@ -3,7 +3,7 @@ SimpleXML: adding/removing attributes (single)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people>
<person name="Joe"></person>
diff --git a/ext/simplexml/tests/014b.phpt b/ext/simplexml/tests/014b.phpt
index 034396751a..0daa9c5c97 100644
--- a/ext/simplexml/tests/014b.phpt
+++ b/ext/simplexml/tests/014b.phpt
@@ -3,7 +3,7 @@ SimpleXML: adding/removing attributes (second)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people>
<person name="Joe"></person>
diff --git a/ext/simplexml/tests/015.phpt b/ext/simplexml/tests/015.phpt
index 11e9cd55cd..d80d4d114c 100644
--- a/ext/simplexml/tests/015.phpt
+++ b/ext/simplexml/tests/015.phpt
@@ -3,7 +3,7 @@ SimpleXML: accessing singular subnode as array
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people>
<person name="Joe"></person>
diff --git a/ext/simplexml/tests/016.phpt b/ext/simplexml/tests/016.phpt
index ab80a7a19a..97981214db 100644
--- a/ext/simplexml/tests/016.phpt
+++ b/ext/simplexml/tests/016.phpt
@@ -3,7 +3,7 @@ SimpleXML: modifying attributes of singular subnode
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people>
<person name="Joe"></person>
diff --git a/ext/simplexml/tests/016a.phpt b/ext/simplexml/tests/016a.phpt
index 9797e29305..7cc8b33123 100644
--- a/ext/simplexml/tests/016a.phpt
+++ b/ext/simplexml/tests/016a.phpt
@@ -3,7 +3,7 @@ SimpleXML: concatenating attributes
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people>
<person name="Foo"></person>
diff --git a/ext/simplexml/tests/018.phpt b/ext/simplexml/tests/018.phpt
index e5c810944e..41a6f8259c 100644
--- a/ext/simplexml/tests/018.phpt
+++ b/ext/simplexml/tests/018.phpt
@@ -3,7 +3,7 @@ SimpleXML: iteration through subnodes and attributes
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people>
<person name="Joe">
diff --git a/ext/simplexml/tests/019.phpt b/ext/simplexml/tests/019.phpt
index aec74ba42e..db15a69ff7 100644
--- a/ext/simplexml/tests/019.phpt
+++ b/ext/simplexml/tests/019.phpt
@@ -3,7 +3,7 @@ SimpleXML: foreach with children()
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$sxe = simplexml_load_string(<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/020.phpt b/ext/simplexml/tests/020.phpt
index 9e91b5ac3a..40d04a7927 100644
--- a/ext/simplexml/tests/020.phpt
+++ b/ext/simplexml/tests/020.phpt
@@ -1,7 +1,7 @@
--TEST--
SimpleXML: Attribute compared to string
--SKIPIF--
-<?php if (!extension_loaded("simplexml")) print "skip"; ?>
+<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
<?php
diff --git a/ext/simplexml/tests/021.phpt b/ext/simplexml/tests/021.phpt
index d5138685f5..c2b38d30ae 100644
--- a/ext/simplexml/tests/021.phpt
+++ b/ext/simplexml/tests/021.phpt
@@ -1,7 +1,7 @@
--TEST--
SimpleXML: Element check
--SKIPIF--
-<?php if (!extension_loaded("simplexml")) print "skip"; ?>
+<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
<?php
diff --git a/ext/simplexml/tests/022.phpt b/ext/simplexml/tests/022.phpt
index 2af4a1dd28..338b61d0ed 100644
--- a/ext/simplexml/tests/022.phpt
+++ b/ext/simplexml/tests/022.phpt
@@ -3,7 +3,7 @@ SimpleXML: Attributes inside foreach
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/023.phpt b/ext/simplexml/tests/023.phpt
index 515a1460c9..9ae6ec8813 100644
--- a/ext/simplexml/tests/023.phpt
+++ b/ext/simplexml/tests/023.phpt
@@ -3,7 +3,7 @@ SimpleXML: Attributes with entities
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/026.phpt b/ext/simplexml/tests/026.phpt
index d6de94be3d..4b1f8168ae 100644
--- a/ext/simplexml/tests/026.phpt
+++ b/ext/simplexml/tests/026.phpt
@@ -3,7 +3,7 @@ SimpleXML: getName()
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people>
<person>Jane</person>
diff --git a/ext/simplexml/tests/027.phpt b/ext/simplexml/tests/027.phpt
index a531ccad46..193456aace 100644
--- a/ext/simplexml/tests/027.phpt
+++ b/ext/simplexml/tests/027.phpt
@@ -3,7 +3,7 @@ SimpleXML: Adding an elements
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people></people>
EOF;
diff --git a/ext/simplexml/tests/028.phpt b/ext/simplexml/tests/028.phpt
index 753056b9ad..70a883e349 100644
--- a/ext/simplexml/tests/028.phpt
+++ b/ext/simplexml/tests/028.phpt
@@ -3,7 +3,7 @@ SimpleXML: Adding an elements without text
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people></people>
EOF;
diff --git a/ext/simplexml/tests/029.phpt b/ext/simplexml/tests/029.phpt
index 86a4f308e3..937f2863e7 100644
--- a/ext/simplexml/tests/029.phpt
+++ b/ext/simplexml/tests/029.phpt
@@ -3,7 +3,7 @@ SimpleXML: foreach and count
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people>
<person name="Joe"/>
diff --git a/ext/simplexml/tests/030.phpt b/ext/simplexml/tests/030.phpt
index 774a5f1459..4d27f40ed1 100644
--- a/ext/simplexml/tests/030.phpt
+++ b/ext/simplexml/tests/030.phpt
@@ -3,7 +3,7 @@ SimpleXML: isset and unset by offset
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<root s:att1="b" att1="a"
xmlns:s="urn::test" xmlns:t="urn::test-t">
diff --git a/ext/simplexml/tests/031.phpt b/ext/simplexml/tests/031.phpt
index cd2d266ba1..143e57f59e 100644
--- a/ext/simplexml/tests/031.phpt
+++ b/ext/simplexml/tests/031.phpt
@@ -3,7 +3,7 @@ SimpleXML: addChild and addAttribute
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<root s:att1="b" att1="a"
xmlns:s="urn::test" xmlns:t="urn::test-t">
diff --git a/ext/simplexml/tests/032.phpt b/ext/simplexml/tests/032.phpt
index 48bc887ecc..805954abaa 100644
--- a/ext/simplexml/tests/032.phpt
+++ b/ext/simplexml/tests/032.phpt
@@ -3,7 +3,7 @@ SimpleXML: comparing instances
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<people>
<person name="Joe"/>
diff --git a/ext/simplexml/tests/SimpleXMLElement_addAttribute_basic.phpt b/ext/simplexml/tests/SimpleXMLElement_addAttribute_basic.phpt
index 15c81b2a9a..d227a220e2 100644
--- a/ext/simplexml/tests/SimpleXMLElement_addAttribute_basic.phpt
+++ b/ext/simplexml/tests/SimpleXMLElement_addAttribute_basic.phpt
@@ -1,12 +1,12 @@
--TEST--
SimpleXMLElement->addAttribute()
---SKIPIF--
+--SKIPIF--
<?php if (!extension_loaded("simplexml")) die("skip"); ?>
---FILE--
+--FILE--
<?php
$simple = simplexml_load_file(dirname(__FILE__)."/book.xml");
$simple->addAttribute('type','novels');
-
+
var_dump($simple->attributes());
echo "Done";
?>
diff --git a/ext/simplexml/tests/SimpleXMLElement_xpath.phpt b/ext/simplexml/tests/SimpleXMLElement_xpath.phpt
index fb7e6e90f0..ad33a53270 100644
--- a/ext/simplexml/tests/SimpleXMLElement_xpath.phpt
+++ b/ext/simplexml/tests/SimpleXMLElement_xpath.phpt
@@ -7,7 +7,7 @@ const XML_PARSE_RECOVER = 1;
// we're not interested in checking concrete warnings regarding invalid XML
$xml = @simplexml_load_string("XXXXXXX^", 'SimpleXMLElement', XML_PARSE_RECOVER);
-
+
// $xml is supposed to hold a SimpleXMLElement, but not FALSE/NULL
var_dump($xml->xpath("BBBB"));
?>
diff --git a/ext/simplexml/tests/bug24392.phpt b/ext/simplexml/tests/bug24392.phpt
index 0a462e5770..5bd133fd73 100644
--- a/ext/simplexml/tests/bug24392.phpt
+++ b/ext/simplexml/tests/bug24392.phpt
@@ -3,7 +3,7 @@ Bug #24392 (empty namespaces causing confusion)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?>
--FILE--
-<?php
+<?php
$s = simplexml_load_file(dirname(__FILE__).'/bug24392.xml');
foreach ($s->item as $item) {
echo $item->title . "\n";
diff --git a/ext/simplexml/tests/bug36611.phpt b/ext/simplexml/tests/bug36611.phpt
index fdcfd4743c..eb202671ca 100644
--- a/ext/simplexml/tests/bug36611.phpt
+++ b/ext/simplexml/tests/bug36611.phpt
@@ -24,7 +24,7 @@ var_dump($val) ;
?>
===DONE===
---EXPECT--
+--EXPECT--
int(1)
int(1)
===DONE===
diff --git a/ext/simplexml/tests/bug38347.phpt b/ext/simplexml/tests/bug38347.phpt
index 0ea7b5d2fe..c6b5bf7fac 100644
--- a/ext/simplexml/tests/bug38347.phpt
+++ b/ext/simplexml/tests/bug38347.phpt
@@ -19,7 +19,7 @@ iterate($xml->unknown);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
SimpleXMLElement Object
(
)
diff --git a/ext/simplexml/tests/bug38354.phpt b/ext/simplexml/tests/bug38354.phpt
index d2fcde11c2..c78ba94fe3 100644
--- a/ext/simplexml/tests/bug38354.phpt
+++ b/ext/simplexml/tests/bug38354.phpt
@@ -10,14 +10,14 @@ $xml = simplexml_load_string(
<a href="javascript:alert(\'1\');"><strong>Item Two</strong></a>
</code>'
);
-
+
foreach ($xml->xpath("//*") as $element) {
var_dump($element->asXML());
}
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
string(101) "<?xml version="1.0"?>
<code>
<a href="javascript:alert('1');"><strong>Item Two</strong></a>
diff --git a/ext/simplexml/tests/bug38406.phpt b/ext/simplexml/tests/bug38406.phpt
index f439e33e5e..42b4f364ba 100644
--- a/ext/simplexml/tests/bug38406.phpt
+++ b/ext/simplexml/tests/bug38406.phpt
@@ -17,7 +17,7 @@ $item->$a = new stdclass;
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
object(SimpleXMLElement)#%d (1) {
[0]=>
string(9) "something"
diff --git a/ext/simplexml/tests/bug38424.phpt b/ext/simplexml/tests/bug38424.phpt
index baab45fe54..560b613c01 100644
--- a/ext/simplexml/tests/bug38424.phpt
+++ b/ext/simplexml/tests/bug38424.phpt
@@ -21,6 +21,6 @@ $xml["a4"] = $str ;
echo $xml->asXML();
?>
---EXPECT--
+--EXPECT--
<?xml version="1.0"?>
<xml a1="abc &amp;amp; def" a2="abc &amp;amp; def" a3="abc &amp; def" a4="abc &amp; def"/>
diff --git a/ext/simplexml/tests/bug39662.phpt b/ext/simplexml/tests/bug39662.phpt
index ae15f2ef0a..b07e90064f 100644
--- a/ext/simplexml/tests/bug39662.phpt
+++ b/ext/simplexml/tests/bug39662.phpt
@@ -18,7 +18,7 @@ var_dump($clone->asXML());
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
object(SimpleXMLElement)#%d (1) {
[0]=>
string(2) "
diff --git a/ext/simplexml/tests/bug39760.phpt b/ext/simplexml/tests/bug39760.phpt
index e781765fa0..409b43a316 100644
--- a/ext/simplexml/tests/bug39760.phpt
+++ b/ext/simplexml/tests/bug39760.phpt
@@ -24,7 +24,7 @@ var_dump($test3);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
object(SimpleXMLElement)#%d (1) {
[0]=>
string(5) "text1"
diff --git a/ext/simplexml/tests/bug40451.phpt b/ext/simplexml/tests/bug40451.phpt
index afd78c769f..cf44926a5e 100644
--- a/ext/simplexml/tests/bug40451.phpt
+++ b/ext/simplexml/tests/bug40451.phpt
@@ -19,6 +19,6 @@ $add->Host->addAttribute('enable', 'true');
?>
===DONE===
---EXPECTF--
+--EXPECTF--
Warning: SimpleXMLElement::addAttribute(): Unable to locate parent Element in %s on line %d
===DONE===
diff --git a/ext/simplexml/tests/bug41175.phpt b/ext/simplexml/tests/bug41175.phpt
index db03da977e..432f217b16 100644
--- a/ext/simplexml/tests/bug41175.phpt
+++ b/ext/simplexml/tests/bug41175.phpt
@@ -12,7 +12,7 @@ echo $xml->asXML();
?>
===DONE===
---EXPECT--
+--EXPECT--
<?xml version="1.0"?>
<img src="foo" alt=""/>
===DONE=== \ No newline at end of file
diff --git a/ext/simplexml/tests/bug46047.phpt b/ext/simplexml/tests/bug46047.phpt
index 0438154823..75d69daabb 100644
--- a/ext/simplexml/tests/bug46047.phpt
+++ b/ext/simplexml/tests/bug46047.phpt
@@ -4,7 +4,7 @@ Bug #46047 (SimpleXML converts empty nodes into object with nested array)
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
<?php
-$xml = new SimpleXMLElement('<foo><bar><![CDATA[]]></bar><baz/></foo>',
+$xml = new SimpleXMLElement('<foo><bar><![CDATA[]]></bar><baz/></foo>',
LIBXML_NOCDATA);
print_r($xml);
diff --git a/ext/simplexml/tests/bug46048.phpt b/ext/simplexml/tests/bug46048.phpt
index 97fc9ed083..3a3e7d54ef 100644
--- a/ext/simplexml/tests/bug46048.phpt
+++ b/ext/simplexml/tests/bug46048.phpt
@@ -13,7 +13,7 @@ $obj = simplexml_load_string($xml);
print_r(get_object_vars($obj));
?>
===DONE===
---EXPECT--
+--EXPECT--
Array
(
[@attributes] => Array
diff --git a/ext/simplexml/tests/bug51615.phpt b/ext/simplexml/tests/bug51615.phpt
index c96b3ae7ca..b935414b80 100644
--- a/ext/simplexml/tests/bug51615.phpt
+++ b/ext/simplexml/tests/bug51615.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #51615 (PHP crash with wrong HTML in SimpleXML)
--SKIPIF--
-<?php if (!extension_loaded("simplexml")) print "skip";
+<?php if (!extension_loaded("simplexml")) print "skip";
if (!extension_loaded("dom")) print "skip";
?>
--FILE--
diff --git a/ext/simplexml/tests/feature55218.phpt b/ext/simplexml/tests/feature55218.phpt
index 25ea534376..aba303b401 100644
--- a/ext/simplexml/tests/feature55218.phpt
+++ b/ext/simplexml/tests/feature55218.phpt
@@ -6,7 +6,7 @@ if (!extension_loaded("simplexml")) print "skip SimpleXML not present";
if (!extension_loaded("libxml")) print "skip LibXML not present";
?>
--FILE--
-<?php
+<?php
$x = new SimpleXMLElement(
'<?xml version="1.0" standalone="yes"?>
diff --git a/ext/simplexml/tests/profile01.phpt b/ext/simplexml/tests/profile01.phpt
index 91b9544f66..f9628fd52b 100644
--- a/ext/simplexml/tests/profile01.phpt
+++ b/ext/simplexml/tests/profile01.phpt
@@ -3,7 +3,7 @@ SimpleXML [profile]: Accessing a simple node
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$root = simplexml_load_string('<?xml version="1.0"?>
<root>
<child>Hello</child>
diff --git a/ext/simplexml/tests/profile02.phpt b/ext/simplexml/tests/profile02.phpt
index 14b5bb86b2..f2e952bc36 100644
--- a/ext/simplexml/tests/profile02.phpt
+++ b/ext/simplexml/tests/profile02.phpt
@@ -3,7 +3,7 @@ SimpleXML [profile]: Accessing an array of subnodes
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$root = simplexml_load_string('<?xml version="1.0"?>
<root>
<child>Hello</child>
diff --git a/ext/simplexml/tests/profile03.phpt b/ext/simplexml/tests/profile03.phpt
index 14f1c5fe88..6215ec57b0 100644
--- a/ext/simplexml/tests/profile03.phpt
+++ b/ext/simplexml/tests/profile03.phpt
@@ -3,7 +3,7 @@ SimpleXML [profile]: Accessing an attribute
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$root = simplexml_load_string('<?xml version="1.0"?>
<root>
<child attribute="Sample" />
diff --git a/ext/simplexml/tests/profile04.phpt b/ext/simplexml/tests/profile04.phpt
index 27714e9927..95907e8e65 100644
--- a/ext/simplexml/tests/profile04.phpt
+++ b/ext/simplexml/tests/profile04.phpt
@@ -3,7 +3,7 @@ SimpleXML [profile]: Accessing a namespaced element
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
-<?php
+<?php
$root = simplexml_load_string('<?xml version="1.0"?>
<root xmlns:reserved="reserved-ns">
<reserved:child>Hello</reserved:child>
diff --git a/ext/simplexml/tests/simplexml_import_dom.phpt b/ext/simplexml/tests/simplexml_import_dom.phpt
index e108e0554d..9908988ee0 100644
--- a/ext/simplexml/tests/simplexml_import_dom.phpt
+++ b/ext/simplexml/tests/simplexml_import_dom.phpt
@@ -4,7 +4,7 @@ SimpleXML [interop]: simplexml_import_dom
<?php if (!extension_loaded("simplexml")) die("skip"); ?>
<?php if (!extension_loaded("dom")) die("skip dom extension not loaded"); ?>
--FILE--
-<?php
+<?php
$dom = new domDocument;
$dom->load(dirname(__FILE__)."/book.xml");
if(!$dom) {
diff --git a/ext/simplexml/tests/simplexml_load_file.phpt b/ext/simplexml/tests/simplexml_load_file.phpt
index 8dc6481f5d..de3a839661 100644
--- a/ext/simplexml/tests/simplexml_load_file.phpt
+++ b/ext/simplexml/tests/simplexml_load_file.phpt
@@ -1,11 +1,11 @@
--TEST--
simplexml_load_file()
---SKIPIF--
+--SKIPIF--
<?php if (!extension_loaded("simplexml")) die("skip"); ?>
---FILE--
+--FILE--
<?php
$simple = simplexml_load_file(dirname(__FILE__)."/book.xml");
-
+
var_dump($simple);
echo "Done";
?>
diff --git a/ext/simplexml/tests/sxe_001.phpt b/ext/simplexml/tests/sxe_001.phpt
index bb93eea076..de13a020de 100644
--- a/ext/simplexml/tests/sxe_001.phpt
+++ b/ext/simplexml/tests/sxe_001.phpt
@@ -6,7 +6,7 @@ if (!extension_loaded("simplexml")) print "skip SimpleXML not present";
if (!extension_loaded("libxml")) print "skip LibXML not present";
?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/sxe_002.phpt b/ext/simplexml/tests/sxe_002.phpt
index b937b011d0..4165378394 100644
--- a/ext/simplexml/tests/sxe_002.phpt
+++ b/ext/simplexml/tests/sxe_002.phpt
@@ -1,12 +1,12 @@
--TEST--
SPL: SimpleXMLIterator and recursion
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('simplexml')) print 'skip';
if (!extension_loaded("libxml")) print "skip LibXML not present";
?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/sxe_003.phpt b/ext/simplexml/tests/sxe_003.phpt
index 58c7523160..ab254cb39a 100644
--- a/ext/simplexml/tests/sxe_003.phpt
+++ b/ext/simplexml/tests/sxe_003.phpt
@@ -1,12 +1,12 @@
--TEST--
SPL: SimpleXMLIterator and getChildren()
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('simplexml')) print 'skip';
if (!extension_loaded("libxml")) print "skip LibXML not present";
?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/sxe_004.phpt b/ext/simplexml/tests/sxe_004.phpt
index 20431de8be..e11130a04c 100644
--- a/ext/simplexml/tests/sxe_004.phpt
+++ b/ext/simplexml/tests/sxe_004.phpt
@@ -1,12 +1,12 @@
--TEST--
SPL: SimpleXMLIterator and overridden iterator methods()
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('simplexml')) print 'skip';
if (!extension_loaded("libxml")) print "skip LibXML not present";
?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version='1.0'?>
diff --git a/ext/simplexml/tests/sxe_005.phpt b/ext/simplexml/tests/sxe_005.phpt
index 183d351166..1d2d015b6d 100644
--- a/ext/simplexml/tests/sxe_005.phpt
+++ b/ext/simplexml/tests/sxe_005.phpt
@@ -1,12 +1,12 @@
--TEST--
SPL: SimpleXMLIterator and overriden count()
--SKIPIF--
-<?php
+<?php
if (!extension_loaded('simplexml')) print 'skip';
if (!extension_loaded("libxml")) print "skip LibXML not present";
?>
--FILE--
-<?php
+<?php
$xml =<<<EOF
<?xml version='1.0'?>