summaryrefslogtreecommitdiff
path: root/ext/dom/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/tests')
-rw-r--r--ext/dom/tests/DOMAttr_value_basic_001.phpt2
-rw-r--r--ext/dom/tests/DOMCharacterData_length_error_001.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_relaxNGValidateSource_basic.phpt4
-rw-r--r--ext/dom/tests/DOMDocument_relaxNGValidateSource_error1.phpt4
-rw-r--r--ext/dom/tests/DOMDocument_relaxNGValidateSource_error2.phpt4
-rw-r--r--ext/dom/tests/DOMDocument_relaxNGValidate_basic.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_relaxNGValidate_error1.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_relaxNGValidate_error2.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_saveHTML_variant2.phpt2
-rw-r--r--ext/dom/tests/DOMElement_hasAttributes_basic.phpt8
-rw-r--r--ext/dom/tests/DOMImplementation_createDocumentType_basic.phpt4
-rw-r--r--ext/dom/tests/DOMNode_cloneNode_basic.phpt2
-rw-r--r--ext/dom/tests/DOMNode_hasChildNodes_basic.phpt2
-rw-r--r--ext/dom/tests/DOMNode_issamenode_basic.phpt16
-rw-r--r--ext/dom/tests/DOMNode_removeChild_basic.phpt2
-rw-r--r--ext/dom/tests/bug28721.phpt4
-rw-r--r--ext/dom/tests/bug28817.phpt2
-rw-r--r--ext/dom/tests/bug38474.phpt4
-rw-r--r--ext/dom/tests/bug42082.phpt2
-rw-r--r--ext/dom/tests/bug43364.phpt2
-rw-r--r--ext/dom/tests/bug46185.phpt2
-rw-r--r--ext/dom/tests/bug46335.phpt2
-rw-r--r--ext/dom/tests/bug47430.phpt2
-rw-r--r--ext/dom/tests/bug47848.phpt2
-rw-r--r--ext/dom/tests/bug47849.phpt2
-rw-r--r--ext/dom/tests/bug69846.phpt2
-rw-r--r--ext/dom/tests/canonicalization.phpt2
-rw-r--r--ext/dom/tests/dom001.phpt2
-rw-r--r--ext/dom/tests/dom006.phpt2
-rw-r--r--ext/dom/tests/dom_set_attr_node.phpt2
30 files changed, 46 insertions, 46 deletions
diff --git a/ext/dom/tests/DOMAttr_value_basic_001.phpt b/ext/dom/tests/DOMAttr_value_basic_001.phpt
index cfc68bdaa8..05ad1022de 100644
--- a/ext/dom/tests/DOMAttr_value_basic_001.phpt
+++ b/ext/dom/tests/DOMAttr_value_basic_001.phpt
@@ -13,4 +13,4 @@ print $attr->value."\n";
===DONE===
--EXPECT--
===DONE===
-
+
diff --git a/ext/dom/tests/DOMCharacterData_length_error_001.phpt b/ext/dom/tests/DOMCharacterData_length_error_001.phpt
index e8bf16ab98..31a17c6186 100644
--- a/ext/dom/tests/DOMCharacterData_length_error_001.phpt
+++ b/ext/dom/tests/DOMCharacterData_length_error_001.phpt
@@ -14,4 +14,4 @@ print $character_data->length;
--EXPECTF--
Warning: main(): Invalid State Error in %s
===DONE===
-
+
diff --git a/ext/dom/tests/DOMDocument_relaxNGValidateSource_basic.phpt b/ext/dom/tests/DOMDocument_relaxNGValidateSource_basic.phpt
index 94f86eb9d2..fa777f8ce5 100644
--- a/ext/dom/tests/DOMDocument_relaxNGValidateSource_basic.phpt
+++ b/ext/dom/tests/DOMDocument_relaxNGValidateSource_basic.phpt
@@ -9,7 +9,7 @@ require_once('skipif.inc');
--FILE--
<?php
$rng = <<< RNG
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
@@ -23,7 +23,7 @@ $rng = <<< RNG
RNG;
$good_xml = <<< GOOD_XML
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<apple>
<pear>Pear</pear>
</apple>
diff --git a/ext/dom/tests/DOMDocument_relaxNGValidateSource_error1.phpt b/ext/dom/tests/DOMDocument_relaxNGValidateSource_error1.phpt
index 7da71a57a1..a277a30a2d 100644
--- a/ext/dom/tests/DOMDocument_relaxNGValidateSource_error1.phpt
+++ b/ext/dom/tests/DOMDocument_relaxNGValidateSource_error1.phpt
@@ -9,7 +9,7 @@ require_once('skipif.inc');
--FILE--
<?php
$rng = <<< RNG
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
@@ -23,7 +23,7 @@ $rng = <<< RNG
RNG;
$bad_xml = <<< BAD_XML
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<apple>
<pear>Pear</pear>
<pear>Pear</pear>
diff --git a/ext/dom/tests/DOMDocument_relaxNGValidateSource_error2.phpt b/ext/dom/tests/DOMDocument_relaxNGValidateSource_error2.phpt
index d689934f4e..b11dc63f7e 100644
--- a/ext/dom/tests/DOMDocument_relaxNGValidateSource_error2.phpt
+++ b/ext/dom/tests/DOMDocument_relaxNGValidateSource_error2.phpt
@@ -9,7 +9,7 @@ require_once('skipif.inc');
--FILE--
<?php
$rng = <<< RNG
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
@@ -20,7 +20,7 @@ $rng = <<< RNG
RNG;
$xml = <<< XML
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<apple>
<pear>Pear</pear>
</apple>
diff --git a/ext/dom/tests/DOMDocument_relaxNGValidate_basic.phpt b/ext/dom/tests/DOMDocument_relaxNGValidate_basic.phpt
index 7a08f37fa5..3e4d003ba4 100644
--- a/ext/dom/tests/DOMDocument_relaxNGValidate_basic.phpt
+++ b/ext/dom/tests/DOMDocument_relaxNGValidate_basic.phpt
@@ -10,7 +10,7 @@ require_once('skipif.inc');
<?php
$rng = dirname(__FILE__).'/DOMDocument_relaxNGValidate_basic.rng';
$xml = <<< XML
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<apple>
<pear>Pear</pear>
</apple>
diff --git a/ext/dom/tests/DOMDocument_relaxNGValidate_error1.phpt b/ext/dom/tests/DOMDocument_relaxNGValidate_error1.phpt
index 82957c35bd..53c773b221 100644
--- a/ext/dom/tests/DOMDocument_relaxNGValidate_error1.phpt
+++ b/ext/dom/tests/DOMDocument_relaxNGValidate_error1.phpt
@@ -10,7 +10,7 @@ require_once('skipif.inc');
<?php
$rng = dirname(__FILE__).'/DOMDocument_relaxNGValidate_basic.rng';
$xml = <<< XML
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<apple>
<pear>Pear</pear>
<pear>Pear</pear>
diff --git a/ext/dom/tests/DOMDocument_relaxNGValidate_error2.phpt b/ext/dom/tests/DOMDocument_relaxNGValidate_error2.phpt
index 7c5f8901e7..0f26e57d0c 100644
--- a/ext/dom/tests/DOMDocument_relaxNGValidate_error2.phpt
+++ b/ext/dom/tests/DOMDocument_relaxNGValidate_error2.phpt
@@ -10,7 +10,7 @@ require_once('skipif.inc');
<?php
$rng = dirname(__FILE__).'/foo.rng';
$xml = <<< XML
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<apple>
<pear>Pear</pear>
<pear>Pear</pear>
diff --git a/ext/dom/tests/DOMDocument_saveHTML_variant2.phpt b/ext/dom/tests/DOMDocument_saveHTML_variant2.phpt
index 86b150d519..9c02e13adc 100644
--- a/ext/dom/tests/DOMDocument_saveHTML_variant2.phpt
+++ b/ext/dom/tests/DOMDocument_saveHTML_variant2.phpt
@@ -1,5 +1,5 @@
--TEST--
-DOMDocument::saveHTML() vs DOMDocumet::saveXML()
+DOMDocument::saveHTML() vs DOMDocumet::saveXML()
--SKIPIF--
<?php
require_once dirname(__FILE__) .'/skipif.inc';
diff --git a/ext/dom/tests/DOMElement_hasAttributes_basic.phpt b/ext/dom/tests/DOMElement_hasAttributes_basic.phpt
index 39366eaab1..a6a2055066 100644
--- a/ext/dom/tests/DOMElement_hasAttributes_basic.phpt
+++ b/ext/dom/tests/DOMElement_hasAttributes_basic.phpt
@@ -1,5 +1,5 @@
--TEST--
-DOMNode: hasAttributes()
+DOMNode: hasAttributes()
--CREDITS--
James Lewis <james@s-1.com>
#TestFest 2008
@@ -22,15 +22,15 @@ echo "Verify that we have a DOMElement object:\n";
echo get_class($element), "\n";
echo "\nElement should have attributes:\n";
-var_dump($element->hasAttributes());
+var_dump($element->hasAttributes());
-$nodelist=$dom->getElementsByTagName('tbody') ;
+$nodelist=$dom->getElementsByTagName('tbody') ;
$element = $nodelist->item(0);
echo "\nVerify that we have a DOMElement object:\n";
echo get_class($element), "\n";
-echo "\nElement should have no attributes:\n";
+echo "\nElement should have no attributes:\n";
var_dump($element->hasAttributes());
diff --git a/ext/dom/tests/DOMImplementation_createDocumentType_basic.phpt b/ext/dom/tests/DOMImplementation_createDocumentType_basic.phpt
index 880aae9d7c..06ae48e93d 100644
--- a/ext/dom/tests/DOMImplementation_createDocumentType_basic.phpt
+++ b/ext/dom/tests/DOMImplementation_createDocumentType_basic.phpt
@@ -7,8 +7,8 @@ include('skipif.inc');
--FILE--
<?php
$imp = new DOMImplementation();
-$doctype = $imp->createDocumentType("html",
- "-//W3C//DTD XHTML 1.0 Strict//EN",
+$doctype = $imp->createDocumentType("html",
+ "-//W3C//DTD XHTML 1.0 Strict//EN",
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd");
$doc = $imp->createDocument(null, 'html', $doctype);
echo $doc->saveHTML();
diff --git a/ext/dom/tests/DOMNode_cloneNode_basic.phpt b/ext/dom/tests/DOMNode_cloneNode_basic.phpt
index ef66626ad8..be8f491922 100644
--- a/ext/dom/tests/DOMNode_cloneNode_basic.phpt
+++ b/ext/dom/tests/DOMNode_cloneNode_basic.phpt
@@ -28,7 +28,7 @@ $xml = <<< EOXML
EOXML;
function dumpcourse($current) {
- $title = ($current->nodeType != XML_TEXT_NODE && $current->hasAttribute('title')) ? $current->getAttribute('title'):"no title";
+ $title = ($current->nodeType != XML_TEXT_NODE && $current->hasAttribute('title')) ? $current->getAttribute('title'):"no title";
echo "Course: $title:";echo(get_class($current)), "\n";
echo "~";var_dump($current->textContent);
}
diff --git a/ext/dom/tests/DOMNode_hasChildNodes_basic.phpt b/ext/dom/tests/DOMNode_hasChildNodes_basic.phpt
index 470921cfee..1055d64f1d 100644
--- a/ext/dom/tests/DOMNode_hasChildNodes_basic.phpt
+++ b/ext/dom/tests/DOMNode_hasChildNodes_basic.phpt
@@ -5,7 +5,7 @@ Test whether a node has child nodes: hasChildNodes()
include('skipif.inc');
?>
--FILE--
-<?php
+<?php
/* Create an XML document
* with strcuture
diff --git a/ext/dom/tests/DOMNode_issamenode_basic.phpt b/ext/dom/tests/DOMNode_issamenode_basic.phpt
index e008340ead..21feda8a7e 100644
--- a/ext/dom/tests/DOMNode_issamenode_basic.phpt
+++ b/ext/dom/tests/DOMNode_issamenode_basic.phpt
@@ -1,5 +1,5 @@
--TEST--
-DOMNode: isSameNode()
+DOMNode: isSameNode()
--CREDITS--
James Lewis <james@s-1.com>
#TestFest 2008
@@ -17,18 +17,18 @@ if(!$dom) {
}
$node = $dom->documentElement;
-if($node->isSameNode($node))
- echo "EXPECTING SAME NODE, PASSED\n" ;
+if($node->isSameNode($node))
+ echo "EXPECTING SAME NODE, PASSED\n" ;
else
- echo "EXPECTING SAME NODE, FAILED\n" ;
+ echo "EXPECTING SAME NODE, FAILED\n" ;
-$nodelist=$dom->getElementsByTagName('tbody') ;
+$nodelist=$dom->getElementsByTagName('tbody') ;
if($nodelist->item(0)->isSameNode($node))
- echo "EXPECTING NOT SAME NODE, FAILED\n" ;
+ echo "EXPECTING NOT SAME NODE, FAILED\n" ;
else
- echo "EXPECTING NOT SAME NODE, PASSED\n" ;
-
+ echo "EXPECTING NOT SAME NODE, PASSED\n" ;
+
?>
===DONE===
--EXPECT--
diff --git a/ext/dom/tests/DOMNode_removeChild_basic.phpt b/ext/dom/tests/DOMNode_removeChild_basic.phpt
index e1399f959d..92cb79d128 100644
--- a/ext/dom/tests/DOMNode_removeChild_basic.phpt
+++ b/ext/dom/tests/DOMNode_removeChild_basic.phpt
@@ -28,7 +28,7 @@ $xml = <<< EOXML
EOXML;
function dumpcourse($current) {
- $title = ($current->nodeType != XML_TEXT_NODE && $current->hasAttribute('title')) ? $current->getAttribute('title'):"no title";
+ $title = ($current->nodeType != XML_TEXT_NODE && $current->hasAttribute('title')) ? $current->getAttribute('title'):"no title";
echo "Course: $title:";echo get_class($current), "\n";
echo "~";var_dump($current->textContent);
}
diff --git a/ext/dom/tests/bug28721.phpt b/ext/dom/tests/bug28721.phpt
index 464498ef80..818e62973e 100644
--- a/ext/dom/tests/bug28721.phpt
+++ b/ext/dom/tests/bug28721.phpt
@@ -24,7 +24,7 @@ function print_node_r(DomNode $node) {
print_node($node->previousSibling);
else
echo "NULL\n";
-
+
echo $indent . "nextSibling: ";
if ( $node->nextSibling )
print_node($node->nextSibling);
@@ -33,7 +33,7 @@ function print_node_r(DomNode $node) {
if ( !$node->hasChildNodes() )
return;
-
+
foreach ($node->childNodes as $child) {
$old_indent = $indent;
diff --git a/ext/dom/tests/bug28817.phpt b/ext/dom/tests/bug28817.phpt
index 9683088680..50d81b1aa7 100644
--- a/ext/dom/tests/bug28817.phpt
+++ b/ext/dom/tests/bug28817.phpt
@@ -17,7 +17,7 @@ class z extends domDocument{
$this->p_array[] = 'tiro';
$this->p_variable = 'Cessante causa cessat effectus';
- }
+ }
}
$z=new z();
diff --git a/ext/dom/tests/bug38474.phpt b/ext/dom/tests/bug38474.phpt
index 54226efe56..9c694c432e 100644
--- a/ext/dom/tests/bug38474.phpt
+++ b/ext/dom/tests/bug38474.phpt
@@ -1,11 +1,11 @@
--TEST--
Bug #38474 (getAttribute select attribute by order, even when prefixed) (OK to fail with libxml2 < 2.6.2x)
--SKIPIF--
-<?php
+<?php
require_once('skipif.inc');
if (version_compare(LIBXML_DOTTED_VERSION, "2.6.20", "<")) {
print "skip libxml version " . LIBXML_DOTTED_VERSION;
-}
+}
?>
--FILE--
<?php
diff --git a/ext/dom/tests/bug42082.phpt b/ext/dom/tests/bug42082.phpt
index 1ec561003e..9708937ff7 100644
--- a/ext/dom/tests/bug42082.phpt
+++ b/ext/dom/tests/bug42082.phpt
@@ -28,4 +28,4 @@ bool(true)
bool(false)
bool(false)
===DONE===
-
+
diff --git a/ext/dom/tests/bug43364.phpt b/ext/dom/tests/bug43364.phpt
index 6e08ffc01f..e4808f19ed 100644
--- a/ext/dom/tests/bug43364.phpt
+++ b/ext/dom/tests/bug43364.phpt
@@ -3,7 +3,7 @@ Bug #43364 (recursive xincludes don't remove internal xml nodes properly)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
-<?php
+<?php
function loopElements($nodes)
{
$count = 0;
diff --git a/ext/dom/tests/bug46185.phpt b/ext/dom/tests/bug46185.phpt
index 02117cdd67..927a6e59e6 100644
--- a/ext/dom/tests/bug46185.phpt
+++ b/ext/dom/tests/bug46185.phpt
@@ -3,7 +3,7 @@ Bug #46185 (importNode changes the namespace of an XML element).
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
-<?php
+<?php
$aDOM = new DOMDocument();
$aDOM->loadXML('<?xml version="1.0"?>
<ns1:a xmlns:ns1="urn::ns"/>');
diff --git a/ext/dom/tests/bug46335.phpt b/ext/dom/tests/bug46335.phpt
index bea4ae9e7d..18d4039aab 100644
--- a/ext/dom/tests/bug46335.phpt
+++ b/ext/dom/tests/bug46335.phpt
@@ -3,7 +3,7 @@ Bug #46335 (DOMText::splitText doesn't handle multibyte characters).
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
-<?php
+<?php
$textascii = 'This is an "example" of using DOM splitText';
$text = 'This is an ‘example’ of using DOM splitText';
$start = 30;
diff --git a/ext/dom/tests/bug47430.phpt b/ext/dom/tests/bug47430.phpt
index 243fe8441c..efce132a2e 100644
--- a/ext/dom/tests/bug47430.phpt
+++ b/ext/dom/tests/bug47430.phpt
@@ -3,7 +3,7 @@ Bug #47430 (Errors after writing to nodeValue parameter of an absent previousSib
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
-<?php
+<?php
$xml = '<?xml
version="1.0"?><html><p><i>Hello</i></p><p><i>World!</i></p></html>';
$dom = new DOMDocument();
diff --git a/ext/dom/tests/bug47848.phpt b/ext/dom/tests/bug47848.phpt
index b4453c7209..e484e9c5dd 100644
--- a/ext/dom/tests/bug47848.phpt
+++ b/ext/dom/tests/bug47848.phpt
@@ -3,7 +3,7 @@ Bug #47848 (importNode doesn't preserve attribute namespaces)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
-<?php
+<?php
$aDOM = new DOMDocument();
$aDOM->appendChild($aDOM->createElementNS('http://friend2friend.net/','f2f:a'));
diff --git a/ext/dom/tests/bug47849.phpt b/ext/dom/tests/bug47849.phpt
index 7e6b02c8cf..c0628e81f3 100644
--- a/ext/dom/tests/bug47849.phpt
+++ b/ext/dom/tests/bug47849.phpt
@@ -3,7 +3,7 @@ Bug #47849 (Non-deep import loses the namespace).
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
-<?php
+<?php
$aDOM= new DOMDocument();
$aDOM->appendChild($aDOM->createElementNS('urn::root','r:root'));
diff --git a/ext/dom/tests/bug69846.phpt b/ext/dom/tests/bug69846.phpt
index 2e8e05aa2c..fcca4c06d6 100644
--- a/ext/dom/tests/bug69846.phpt
+++ b/ext/dom/tests/bug69846.phpt
@@ -6,7 +6,7 @@ Bug #69846 Segmenation fault (access violation) when iterating over DOMNodeList
<?php
$tmpDomDocument = new DOMDocument();
-
+
$xml = '<?xml version="1.0" encoding="UTF-8"?><dummy xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><xfa:data>
<form1>
<TextField1>Value A</TextField1>
diff --git a/ext/dom/tests/canonicalization.phpt b/ext/dom/tests/canonicalization.phpt
index 167f094ff8..11575819a6 100644
--- a/ext/dom/tests/canonicalization.phpt
+++ b/ext/dom/tests/canonicalization.phpt
@@ -40,7 +40,7 @@ echo $doc->c14N(TRUE, FALSE, array('query'=>'(//. | //@* | //namespace::*)'))."\
using xpath query with registered namespace.
test namespace prefix is also included. */
echo $doc->c14N(TRUE, FALSE,
- array('query'=>'(//a:contain | //a:bar | .//namespace::*)',
+ array('query'=>'(//a:contain | //a:bar | .//namespace::*)',
'namespaces'=>array('a'=>'http://www.example.com/ns/foo')),
array('test'))."\n\n";
diff --git a/ext/dom/tests/dom001.phpt b/ext/dom/tests/dom001.phpt
index a0c78fbb0a..910a18c628 100644
--- a/ext/dom/tests/dom001.phpt
+++ b/ext/dom/tests/dom001.phpt
@@ -46,7 +46,7 @@ echo "--------- creating a new attribute\n";
//$attr = $dom->createAttribute("src", "picture.gif");
//print_r($attr);
-//$rootnode->set_attributeNode($attr);
+//$rootnode->set_attributeNode($attr);
$attr = $rootnode->setAttribute("src", "picture.gif");
$attr = $rootnode->getAttribute("src");
print_r($attr);
diff --git a/ext/dom/tests/dom006.phpt b/ext/dom/tests/dom006.phpt
index b8e8ed1724..6872a293ee 100644
--- a/ext/dom/tests/dom006.phpt
+++ b/ext/dom/tests/dom006.phpt
@@ -18,7 +18,7 @@ Class books extends domDocument {
$bookElement->appendChild($authorElement);
$this->documentElement->appendChild($bookElement);
}
-
+
}
$dom = new books;
diff --git a/ext/dom/tests/dom_set_attr_node.phpt b/ext/dom/tests/dom_set_attr_node.phpt
index 18c697710a..677dfa5e70 100644
--- a/ext/dom/tests/dom_set_attr_node.phpt
+++ b/ext/dom/tests/dom_set_attr_node.phpt
@@ -31,7 +31,7 @@ ob_start();
$contents = ob_get_contents();
ob_end_clean();
echo preg_replace('/object\(DOMAttr\).+\{.*?\}/s', 'DOMAttr', $contents);
-}
+}
?>
--EXPECTF--