summaryrefslogtreecommitdiff
path: root/ext/dom
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-14 17:23:43 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-14 19:44:14 +0200
commit17ccbeec3242b80f84fbf6b3acd58421ef003b02 (patch)
tree8fed8d7515c6603fd4a50eb0f8177883bc6da336 /ext/dom
parentcc7215f48f66982f0b7799c47d8fa4c09a32a3c7 (diff)
downloadphp-git-17ccbeec3242b80f84fbf6b3acd58421ef003b02.tar.gz
Trim trailing whitespace in *.phpt
Diffstat (limited to 'ext/dom')
-rw-r--r--ext/dom/tests/DOMAttr_value_basic_001.phpt2
-rw-r--r--ext/dom/tests/DOMCDATASection_construct_error_001.phpt2
-rw-r--r--ext/dom/tests/DOMCharacterData_data_basic_002.phpt2
-rw-r--r--ext/dom/tests/DOMCharacterData_substringData_basic_001.phpt4
-rw-r--r--ext/dom/tests/DOMDocument_createAttribute_basic.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_loadHTML_basic.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_loadXML_error1.phpt4
-rw-r--r--ext/dom/tests/DOMDocument_loadXML_error2.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_loadXML_error3.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_loadXML_error4.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_loadXML_error5.phpt4
-rw-r--r--ext/dom/tests/DOMDocument_load_error1.phpt4
-rw-r--r--ext/dom/tests/DOMDocument_load_error2.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_load_error3.phpt4
-rw-r--r--ext/dom/tests/DOMDocument_load_error4.phpt4
-rw-r--r--ext/dom/tests/DOMDocument_load_error5.phpt4
-rw-r--r--ext/dom/tests/DOMDocument_saveHTML_basic.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_saveHTML_variant1.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_saveHTML_variant2.phpt2
-rw-r--r--ext/dom/tests/DOMDocument_strictErrorChecking_basic.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.phpt4
-rw-r--r--ext/dom/tests/DOMNode_insertBefore_error2.phpt2
-rw-r--r--ext/dom/tests/DOMNode_insertBefore_error3.phpt2
-rw-r--r--ext/dom/tests/DOMNode_insertBefore_error4.phpt2
-rw-r--r--ext/dom/tests/DOMNode_insertBefore_error5.phpt4
-rw-r--r--ext/dom/tests/DOMNode_insertBefore_error6.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/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.phpt8
-rw-r--r--ext/dom/tests/dom001.phpt2
-rw-r--r--ext/dom/tests/dom006.phpt2
-rw-r--r--ext/dom/tests/dom_create_element.phpt6
-rw-r--r--ext/dom/tests/dom_set_attr_node.phpt2
-rw-r--r--ext/dom/tests/domdocument_createentityreference_001.phpt2
-rw-r--r--ext/dom/tests/domdocument_createentityreference_002.phpt2
48 files changed, 75 insertions, 75 deletions
diff --git a/ext/dom/tests/DOMAttr_value_basic_001.phpt b/ext/dom/tests/DOMAttr_value_basic_001.phpt
index 51c4ac954d..f4a2280103 100644
--- a/ext/dom/tests/DOMAttr_value_basic_001.phpt
+++ b/ext/dom/tests/DOMAttr_value_basic_001.phpt
@@ -1,5 +1,5 @@
--TEST--
-Read empty $value.
+Read empty $value.
--CREDITS--
Jason Bouffard <jbouffard1@yahoo.com>
# TestFest Atlanta 2009-05-14
diff --git a/ext/dom/tests/DOMCDATASection_construct_error_001.phpt b/ext/dom/tests/DOMCDATASection_construct_error_001.phpt
index fbce3c7527..2154016142 100644
--- a/ext/dom/tests/DOMCDATASection_construct_error_001.phpt
+++ b/ext/dom/tests/DOMCDATASection_construct_error_001.phpt
@@ -2,7 +2,7 @@
__construct() with no arguments.
--CREDITS--
Nic Rosental nicrosental@gmail.com
-# TestFest Atlanta 2009-5-14
+# TestFest Atlanta 2009-5-14
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
diff --git a/ext/dom/tests/DOMCharacterData_data_basic_002.phpt b/ext/dom/tests/DOMCharacterData_data_basic_002.phpt
index 394b316fa3..f96791150a 100644
--- a/ext/dom/tests/DOMCharacterData_data_basic_002.phpt
+++ b/ext/dom/tests/DOMCharacterData_data_basic_002.phpt
@@ -2,7 +2,7 @@
Create CDATA section and change it using DOMcreateCDATASection
--CREDITS--
Nic Rosental nicrosental@gmail.com
-# TestFest Atlanta 2009-5-28
+# TestFest Atlanta 2009-5-28
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
diff --git a/ext/dom/tests/DOMCharacterData_substringData_basic_001.phpt b/ext/dom/tests/DOMCharacterData_substringData_basic_001.phpt
index b9d73e1819..8b924f04d5 100644
--- a/ext/dom/tests/DOMCharacterData_substringData_basic_001.phpt
+++ b/ext/dom/tests/DOMCharacterData_substringData_basic_001.phpt
@@ -1,8 +1,8 @@
--TEST--
-__DOMCharacterData::substringData pull mid section of string
+__DOMCharacterData::substringData pull mid section of string
--CREDITS--
Nic Rosental nicrosental@gmail.com
-# TestFest Atlanta 2009-5-28
+# TestFest Atlanta 2009-5-28
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
diff --git a/ext/dom/tests/DOMDocument_createAttribute_basic.phpt b/ext/dom/tests/DOMDocument_createAttribute_basic.phpt
index 4dd181b3f8..4e00fbb8d8 100644
--- a/ext/dom/tests/DOMDocument_createAttribute_basic.phpt
+++ b/ext/dom/tests/DOMDocument_createAttribute_basic.phpt
@@ -1,7 +1,7 @@
--TEST--
DomDocument::createAttribute() - basic test for DomDocument::createAttribute()
--CREDITS--
-Muhammad Khalid Adnan
+Muhammad Khalid Adnan
# TestFest 2008
--SKIPIF--
<?php require_once('skipif.inc'); ?>
diff --git a/ext/dom/tests/DOMDocument_loadHTML_basic.phpt b/ext/dom/tests/DOMDocument_loadHTML_basic.phpt
index 616d1d8371..733704b0f6 100644
--- a/ext/dom/tests/DOMDocument_loadHTML_basic.phpt
+++ b/ext/dom/tests/DOMDocument_loadHTML_basic.phpt
@@ -1,5 +1,5 @@
--TEST--
-DOMDocument::loadHTML
+DOMDocument::loadHTML
--CREDITS--
Frank Cassedanne franck@ouarz.net
#London TestFest 2008
diff --git a/ext/dom/tests/DOMDocument_loadXML_error1.phpt b/ext/dom/tests/DOMDocument_loadXML_error1.phpt
index 52d44ea291..9a433d1282 100644
--- a/ext/dom/tests/DOMDocument_loadXML_error1.phpt
+++ b/ext/dom/tests/DOMDocument_loadXML_error1.phpt
@@ -1,7 +1,7 @@
--TEST--
-Test DOMDocument::loadXML() detects not-well formed XML
+Test DOMDocument::loadXML() detects not-well formed XML
--DESCRIPTION--
-This test verifies the method detects an opening and ending tag mismatch
+This test verifies the method detects an opening and ending tag mismatch
Environment variables used in the test:
- XML_FILE: the xml file to load
- LOAD_OPTIONS: the second parameter to pass to the method
diff --git a/ext/dom/tests/DOMDocument_loadXML_error2.phpt b/ext/dom/tests/DOMDocument_loadXML_error2.phpt
index 6ac4193daf..e3072720e6 100644
--- a/ext/dom/tests/DOMDocument_loadXML_error2.phpt
+++ b/ext/dom/tests/DOMDocument_loadXML_error2.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test DOMDocument::loadXML() detects not-well formed XML
+Test DOMDocument::loadXML() detects not-well formed XML
--DESCRIPTION--
This test verifies the method detects attributes values not closed between " or '
Environment variables used in the test:
diff --git a/ext/dom/tests/DOMDocument_loadXML_error3.phpt b/ext/dom/tests/DOMDocument_loadXML_error3.phpt
index 07f7ca7738..3678c79601 100644
--- a/ext/dom/tests/DOMDocument_loadXML_error3.phpt
+++ b/ext/dom/tests/DOMDocument_loadXML_error3.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test DOMDocument::loadXML() detects not-well formed XML
+Test DOMDocument::loadXML() detects not-well formed XML
--DESCRIPTION--
This test verifies the method detects a typo in tag names
Environment variables used in the test:
diff --git a/ext/dom/tests/DOMDocument_loadXML_error4.phpt b/ext/dom/tests/DOMDocument_loadXML_error4.phpt
index 1854a34de4..e4a1e9d774 100644
--- a/ext/dom/tests/DOMDocument_loadXML_error4.phpt
+++ b/ext/dom/tests/DOMDocument_loadXML_error4.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test DOMDocument::loadXML() detects not-well formed XML
+Test DOMDocument::loadXML() detects not-well formed XML
--DESCRIPTION--
This test verifies the method detects an unsupported xml version
Environment variables used in the test:
diff --git a/ext/dom/tests/DOMDocument_loadXML_error5.phpt b/ext/dom/tests/DOMDocument_loadXML_error5.phpt
index a4aa1858f5..29cb464e8d 100644
--- a/ext/dom/tests/DOMDocument_loadXML_error5.phpt
+++ b/ext/dom/tests/DOMDocument_loadXML_error5.phpt
@@ -1,7 +1,7 @@
--TEST--
-Test DOMDocument::loadXML() detects not-well formed XML
+Test DOMDocument::loadXML() detects not-well formed XML
--DESCRIPTION--
-This test verifies the method detects extra content at the end of the document
+This test verifies the method detects extra content at the end of the document
Environment variables used in the test:
- XML_FILE: the xml file to load
- LOAD_OPTIONS: the second parameter to pass to the method
diff --git a/ext/dom/tests/DOMDocument_load_error1.phpt b/ext/dom/tests/DOMDocument_load_error1.phpt
index 2ac3f50979..4c661f7e69 100644
--- a/ext/dom/tests/DOMDocument_load_error1.phpt
+++ b/ext/dom/tests/DOMDocument_load_error1.phpt
@@ -1,7 +1,7 @@
--TEST--
-Test DOMDocument::load() detects not-well formed XML
+Test DOMDocument::load() detects not-well formed XML
--DESCRIPTION--
-This test verifies the method detects an opening and ending tag mismatch
+This test verifies the method detects an opening and ending tag mismatch
Environment variables used in the test:
- XML_FILE: the xml file to load
- LOAD_OPTIONS: the second parameter to pass to the method
diff --git a/ext/dom/tests/DOMDocument_load_error2.phpt b/ext/dom/tests/DOMDocument_load_error2.phpt
index 23a5e4827d..282f764989 100644
--- a/ext/dom/tests/DOMDocument_load_error2.phpt
+++ b/ext/dom/tests/DOMDocument_load_error2.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test DOMDocument::load() detects not-well formed XML
+Test DOMDocument::load() detects not-well formed XML
--DESCRIPTION--
This test verifies the method detects attributes values not closed between " or '
Environment variables used in the test:
diff --git a/ext/dom/tests/DOMDocument_load_error3.phpt b/ext/dom/tests/DOMDocument_load_error3.phpt
index b9ac49c466..fbd795ee4d 100644
--- a/ext/dom/tests/DOMDocument_load_error3.phpt
+++ b/ext/dom/tests/DOMDocument_load_error3.phpt
@@ -1,7 +1,7 @@
--TEST--
-Test DOMDocument::load() detects not-well formed XML
+Test DOMDocument::load() detects not-well formed XML
--DESCRIPTION--
-This test verifies the method detects and opening and ending tag mismatch
+This test verifies the method detects and opening and ending tag mismatch
Environment variables used in the test:
- XML_FILE: the xml file to load
- LOAD_OPTIONS: the second parameter to pass to the method
diff --git a/ext/dom/tests/DOMDocument_load_error4.phpt b/ext/dom/tests/DOMDocument_load_error4.phpt
index 9fa6ce279a..b1a5103c8a 100644
--- a/ext/dom/tests/DOMDocument_load_error4.phpt
+++ b/ext/dom/tests/DOMDocument_load_error4.phpt
@@ -1,7 +1,7 @@
--TEST--
-Test DOMDocument::load() detects not-well formed XML
+Test DOMDocument::load() detects not-well formed XML
--DESCRIPTION--
-This test verifies the method detects an unsupported xml version
+This test verifies the method detects an unsupported xml version
Environment variables used in the test:
- XML_FILE: the xml file to load
- LOAD_OPTIONS: the second parameter to pass to the method
diff --git a/ext/dom/tests/DOMDocument_load_error5.phpt b/ext/dom/tests/DOMDocument_load_error5.phpt
index a374f9474d..27f2c06300 100644
--- a/ext/dom/tests/DOMDocument_load_error5.phpt
+++ b/ext/dom/tests/DOMDocument_load_error5.phpt
@@ -1,7 +1,7 @@
--TEST--
-Test DOMDocument::load() detects not-well formed XML
+Test DOMDocument::load() detects not-well formed XML
--DESCRIPTION--
-This test verifies the method detects extra content at the end of the document
+This test verifies the method detects extra content at the end of the document
Environment variables used in the test:
- XML_FILE: the xml file to load
- LOAD_OPTIONS: the second parameter to pass to the method
diff --git a/ext/dom/tests/DOMDocument_saveHTML_basic.phpt b/ext/dom/tests/DOMDocument_saveHTML_basic.phpt
index 76f1ed0abf..c13f883dda 100644
--- a/ext/dom/tests/DOMDocument_saveHTML_basic.phpt
+++ b/ext/dom/tests/DOMDocument_saveHTML_basic.phpt
@@ -1,5 +1,5 @@
--TEST--
-DOMDocument::saveHTML() should dump the internal document into a string using HTML formatting
+DOMDocument::saveHTML() should dump the internal document into a string using HTML formatting
--CREDITS--
Knut Urdalen <knut@php.net>
#PHPTestFest2009 Norway 2009-06-09 \o/
diff --git a/ext/dom/tests/DOMDocument_saveHTML_variant1.phpt b/ext/dom/tests/DOMDocument_saveHTML_variant1.phpt
index d1691138ae..8c4b56924d 100644
--- a/ext/dom/tests/DOMDocument_saveHTML_variant1.phpt
+++ b/ext/dom/tests/DOMDocument_saveHTML_variant1.phpt
@@ -1,5 +1,5 @@
--TEST--
-DOMDocument::saveHTML() optional parameters
+DOMDocument::saveHTML() optional parameters
--SKIPIF--
<?php
require_once dirname(__FILE__) .'/skipif.inc';
diff --git a/ext/dom/tests/DOMDocument_saveHTML_variant2.phpt b/ext/dom/tests/DOMDocument_saveHTML_variant2.phpt
index 54ccda1fa5..c39d4e5709 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/DOMDocument_strictErrorChecking_basic.phpt b/ext/dom/tests/DOMDocument_strictErrorChecking_basic.phpt
index 9ad55a4ad6..33aecf4925 100644
--- a/ext/dom/tests/DOMDocument_strictErrorChecking_basic.phpt
+++ b/ext/dom/tests/DOMDocument_strictErrorChecking_basic.phpt
@@ -1,5 +1,5 @@
--TEST--
-DomDocument::$strictErrorChecking - basic test
+DomDocument::$strictErrorChecking - basic test
--CREDITS--
Vincent Tsao <notes4vincent@gmail.com>
# TestFest 2009 NYPHP
diff --git a/ext/dom/tests/DOMElement_hasAttributes_basic.phpt b/ext/dom/tests/DOMElement_hasAttributes_basic.phpt
index 8e804bea92..e275c8c717 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 3b19ea4614..32e180cdc6 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 cba3c17a2c..bbfbcc15ea 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 3a6f6b4218..6670226246 100644
--- a/ext/dom/tests/DOMNode_hasChildNodes_basic.phpt
+++ b/ext/dom/tests/DOMNode_hasChildNodes_basic.phpt
@@ -5,11 +5,11 @@ Test whether a node has child nodes: hasChildNodes()
include('skipif.inc');
?>
--FILE--
-<?php
+<?php
/* Create an XML document
* with strcuture
- * <book>
+ * <book>
* <title>This is the title</title>
* </book>
* Check for child nodes of the <book>, <title> and This is the title
diff --git a/ext/dom/tests/DOMNode_insertBefore_error2.phpt b/ext/dom/tests/DOMNode_insertBefore_error2.phpt
index 835dfa065a..fbe212d4b9 100644
--- a/ext/dom/tests/DOMNode_insertBefore_error2.phpt
+++ b/ext/dom/tests/DOMNode_insertBefore_error2.phpt
@@ -2,7 +2,7 @@
Test DOMNode::insertBefore() check the error code DOM_NOT_FOUND is raised
--DESCRIPTION--
DOMNode::insertBefore(newNode, [refNode])
-DOM_NOT_FOUND is raised if refnode is not a child
+DOM_NOT_FOUND is raised if refnode is not a child
This test checks the error message is raised when the refnode is a sibling
--CREDITS--
Antonio Diaz Ruiz <dejalatele@gmail.com>
diff --git a/ext/dom/tests/DOMNode_insertBefore_error3.phpt b/ext/dom/tests/DOMNode_insertBefore_error3.phpt
index a3bad5433e..a8b4e45494 100644
--- a/ext/dom/tests/DOMNode_insertBefore_error3.phpt
+++ b/ext/dom/tests/DOMNode_insertBefore_error3.phpt
@@ -2,7 +2,7 @@
Test DOMNode::insertBefore() check the error code DOM_NOT_FOUND is raised
--DESCRIPTION--
DOMNode::insertBefore(newNode, [refNode])
-DOM_NOT_FOUND is raised if refnode is not a child
+DOM_NOT_FOUND is raised if refnode is not a child
This test checks the error message is raised when refnode is the parent node
--CREDITS--
Antonio Diaz Ruiz <dejalatele@gmail.com>
diff --git a/ext/dom/tests/DOMNode_insertBefore_error4.phpt b/ext/dom/tests/DOMNode_insertBefore_error4.phpt
index a8d12914e3..5b1fc3150a 100644
--- a/ext/dom/tests/DOMNode_insertBefore_error4.phpt
+++ b/ext/dom/tests/DOMNode_insertBefore_error4.phpt
@@ -2,7 +2,7 @@
Test DOMNode::insertBefore() check the error code DOM_NOT_FOUND is raised
--DESCRIPTION--
DOMNode::insertBefore(newNode, [refNode])
-DOM_NOT_FOUND is raised if refnode is not a child
+DOM_NOT_FOUND is raised if refnode is not a child
This test checks the error message is raised when the refnode is a brand new node
--CREDITS--
Antonio Diaz Ruiz <dejalatele@gmail.com>
diff --git a/ext/dom/tests/DOMNode_insertBefore_error5.phpt b/ext/dom/tests/DOMNode_insertBefore_error5.phpt
index c41a9edfbb..f5bcf098e7 100644
--- a/ext/dom/tests/DOMNode_insertBefore_error5.phpt
+++ b/ext/dom/tests/DOMNode_insertBefore_error5.phpt
@@ -2,8 +2,8 @@
Test DOMNode::insertBefore() check the error code DOM_NOT_FOUND is raised
--DESCRIPTION--
DOMNode::insertBefore(newNode, [refNode])
-DOM_NOT_FOUND is raised if refnode is not a child
-This test checks the error message is raised when the refnode is a descendant but not a child
+DOM_NOT_FOUND is raised if refnode is not a child
+This test checks the error message is raised when the refnode is a descendant but not a child
--CREDITS--
Antonio Diaz Ruiz <dejalatele@gmail.com>
--INI--
diff --git a/ext/dom/tests/DOMNode_insertBefore_error6.phpt b/ext/dom/tests/DOMNode_insertBefore_error6.phpt
index 99c72f8621..5afecafed7 100644
--- a/ext/dom/tests/DOMNode_insertBefore_error6.phpt
+++ b/ext/dom/tests/DOMNode_insertBefore_error6.phpt
@@ -2,7 +2,7 @@
Test DOMNode::insertBefore() check the error code DOM_NOT_FOUND is raised
--DESCRIPTION--
DOMNode::insertBefore(newNode, [refNode])
-DOM_NOT_FOUND is raised if refnode is not a child
+DOM_NOT_FOUND is raised if refnode is not a child
This test checks the error message is raised when the refnode is the parent
--CREDITS--
Antonio Diaz Ruiz <dejalatele@gmail.com>
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 fb0977488e..24f48e6d0b 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 a250bff03e..856917638f 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/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 cf1a81f24a..c1caf3fec3 100644
--- a/ext/dom/tests/canonicalization.phpt
+++ b/ext/dom/tests/canonicalization.phpt
@@ -39,12 +39,12 @@ echo $doc->c14N(TRUE, FALSE, array('query'=>'(//. | //@* | //namespace::*)'))."\
/* exclusive/without comments first child element of doc element is context.
using xpath query with registered namespace.
test namespace prefix is also included. */
-echo $doc->c14N(TRUE, FALSE,
- array('query'=>'(//a:contain | //a:bar | .//namespace::*)',
- 'namespaces'=>array('a'=>'http://www.example.com/ns/foo')),
+echo $doc->c14N(TRUE, FALSE,
+ array('query'=>'(//a:contain | //a:bar | .//namespace::*)',
+ 'namespaces'=>array('a'=>'http://www.example.com/ns/foo')),
array('test'))."\n\n";
-/* exclusive/without comments first child element of doc element is context.
+/* exclusive/without comments first child element of doc element is context.
test namespace prefix is also included */
echo $doc->C14N(TRUE, FALSE, NULL, array('test'));
?>
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_create_element.phpt b/ext/dom/tests/dom_create_element.phpt
index 3f307099bb..bd2c8f11da 100644
--- a/ext/dom/tests/dom_create_element.phpt
+++ b/ext/dom/tests/dom_create_element.phpt
@@ -221,7 +221,7 @@ try {
print $e->getMessage() . "\n";
}
-/* the qualifiedName has a prefix that is "xml" and the namespaceURI
+/* the qualifiedName has a prefix that is "xml" and the namespaceURI
is different from "http://www.w3.org/XML/1998/namespace" [XML Namespaces] */
print "26 DOMDocument::createElementNS('http://wrong.namespaceURI.com', 'xml:valid')\n";
@@ -261,7 +261,7 @@ try {
}
-/* the qualifiedName or its prefix is "xmlns" and the namespaceURI is
+/* the qualifiedName or its prefix is "xmlns" and the namespaceURI is
different from "http://www.w3.org/2000/xmlns/" */
print "30 DOMDocument::createElementNS('http://wrong.namespaceURI.com', 'xmlns:valid')\n";
@@ -298,7 +298,7 @@ try {
print $e->getMessage() . "\n";
}
-/* the namespaceURI is "http://www.w3.org/2000/xmlns/" and neither the
+/* the namespaceURI is "http://www.w3.org/2000/xmlns/" and neither the
qualifiedName nor its prefix is "xmlns". */
print "34 DOMDocument::createElementNS('http://www.w3.org/2000/xmlns/', 'wrongprefix:valid')\n";
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--
diff --git a/ext/dom/tests/domdocument_createentityreference_001.phpt b/ext/dom/tests/domdocument_createentityreference_001.phpt
index 7343e74cfd..9a43599914 100644
--- a/ext/dom/tests/domdocument_createentityreference_001.phpt
+++ b/ext/dom/tests/domdocument_createentityreference_001.phpt
@@ -7,7 +7,7 @@ Clint Priest @ PhpTek09
--FILE--
<?php
$objDoc = new DomDocument();
-
+
$objRef = $objDoc->createEntityReference('Test');
echo $objRef->nodeName . "\n";
?>
diff --git a/ext/dom/tests/domdocument_createentityreference_002.phpt b/ext/dom/tests/domdocument_createentityreference_002.phpt
index a2416c2d89..90754100dd 100644
--- a/ext/dom/tests/domdocument_createentityreference_002.phpt
+++ b/ext/dom/tests/domdocument_createentityreference_002.phpt
@@ -7,7 +7,7 @@ Clint Priest @ PhpTek09
--FILE--
<?php
$objDoc = new DomDocument();
-
+
$objRef = $objDoc->createEntityReference();
?>
===DONE===