cvs: pear /XML_Util/tests testBasic_apiVersion.phpt testBasic_attributesToString.phpt testBasic_collapseEmptyTags.phpt testBasic_createCDataSection.phpt testBasic_createComment.phpt testBasic_createEndElement.phpt testBasic_createStartElement.phpt testBasic_createTag.phpt testBasic_createTagFromArray.phpt testBasic_getDocTypeDeclaration.phpt testBasic_getXmlDeclaration.phpt testBasic_isValidName.phpt testBasic_raiseError.phpt testBasic_replaceEntities.phpt testBasic_reverseEntities.phpt testBasic_splitQualifiedName.phpt testBug_4950.phpt testBug_5392.phpt
[email protected] ("Chuck Burgess") Mon, 05 May 2008 21:32:27 -0000
| Newsgroups | php.pear.cvs |
|---|---|
| Message-ID | <cvsashnazg1210023147@cvsserver> |
ashnazg Mon May 5 21:32:27 2008 UTC
Modified files:
/pear/XML_Util/tests testBasic_apiVersion.phpt
testBasic_attributesToString.phpt
testBasic_collapseEmptyTags.phpt
testBasic_createCDataSection.phpt
testBasic_createComment.phpt
testBasic_createEndElement.phpt
testBasic_createStartElement.phpt
testBasic_createTagFromArray.phpt
testBasic_createTag.phpt
testBasic_getDocTypeDeclaration.phpt
testBasic_getXmlDeclaration.phpt
testBasic_isValidName.phpt
testBasic_raiseError.phpt
testBasic_replaceEntities.phpt
testBasic_reverseEntities.phpt
testBasic_splitQualifiedName.phpt
testBug_4950.phpt testBug_5392.phpt
Log:
show test name at head of EXPECT output
ashnazg-20080505213227.txt
(text/plain, 16.1 KB)
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_apiVersion.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_apiVersion.phpt
diff -u pear/XML_Util/tests/testBasic_apiVersion.phpt:1.2 pear/XML_Util/tests/testBasic_apiVersion.phpt:1.3
--- pear/XML_Util/tests/testBasic_apiVersion.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_apiVersion.phpt Mon May 5 21:32:27 2008
@@ -6,10 +6,13 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::apiVersion() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: basic apiVersion() call" . PHP_EOL;
echo XML_Util::apiVersion() . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::apiVersion() basic tests=====
+
TEST: basic apiVersion() call
1.1
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_attributesToString.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_attributesToString.phpt
diff -u pear/XML_Util/tests/testBasic_attributesToString.phpt:1.2 pear/XML_Util/tests/testBasic_attributesToString.phpt:1.3
--- pear/XML_Util/tests/testBasic_attributesToString.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_attributesToString.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::attributesToString() basic tests=====' . PHP_EOL . PHP_EOL;
$att = array("foo" => "bar", "boo" => "baz");
@@ -51,6 +52,8 @@
XML_UTIL_ENTITIES_HTML) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::attributesToString() basic tests=====
+
TEST: basic usage
boo="baz" foo="bar"
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_collapseEmptyTags.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_collapseEmptyTags.phpt
diff -u pear/XML_Util/tests/testBasic_collapseEmptyTags.phpt:1.2 pear/XML_Util/tests/testBasic_collapseEmptyTags.phpt:1.3
--- pear/XML_Util/tests/testBasic_collapseEmptyTags.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_collapseEmptyTags.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::collapseEmptyTags() basic tests=====' . PHP_EOL . PHP_EOL;
$emptyTag = "<foo></foo>";
$otherTag = "<bar>baz</bar>";
@@ -30,6 +31,8 @@
echo XML_Util::collapseEmptyTags($emptyTag . $xhtmlTag . $otherTag, XML_UTIL_COLLAPSE_XHTML_ONLY) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::collapseEmptyTags() basic tests=====
+
TEST: basic usage
<foo />
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_createCDataSection.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_createCDataSection.phpt
diff -u pear/XML_Util/tests/testBasic_createCDataSection.phpt:1.2 pear/XML_Util/tests/testBasic_createCDataSection.phpt:1.3
--- pear/XML_Util/tests/testBasic_createCDataSection.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_createCDataSection.phpt Mon May 5 21:32:27 2008
@@ -6,10 +6,13 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::createCDataSection() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: basic usage" . PHP_EOL;
echo XML_Util::createCDataSection("I am content.") . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::createCDataSection() basic tests=====
+
TEST: basic usage
<![CDATA[I am content.]]>
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_createComment.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_createComment.phpt
diff -u pear/XML_Util/tests/testBasic_createComment.phpt:1.2 pear/XML_Util/tests/testBasic_createComment.phpt:1.3
--- pear/XML_Util/tests/testBasic_createComment.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_createComment.phpt Mon May 5 21:32:27 2008
@@ -6,10 +6,13 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::createComment() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: basic usage" . PHP_EOL;
echo XML_Util::createComment("I am comment.") . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::createComment() basic tests=====
+
TEST: basic usage
<!-- I am comment. -->
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_createEndElement.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_createEndElement.phpt
diff -u pear/XML_Util/tests/testBasic_createEndElement.phpt:1.2 pear/XML_Util/tests/testBasic_createEndElement.phpt:1.3
--- pear/XML_Util/tests/testBasic_createEndElement.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_createEndElement.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::createEndElement() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: basic usage (myTag)" . PHP_EOL;
echo XML_Util::createEndElement("myTag") . PHP_EOL . PHP_EOL;
@@ -14,6 +15,8 @@
echo XML_Util::createEndElement("myNs:myTag") . PHP_EOL . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::createEndElement() basic tests=====
+
TEST: basic usage (myTag)
</myTag>
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_createStartElement.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_createStartElement.phpt
diff -u pear/XML_Util/tests/testBasic_createStartElement.phpt:1.2 pear/XML_Util/tests/testBasic_createStartElement.phpt:1.3
--- pear/XML_Util/tests/testBasic_createStartElement.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_createStartElement.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::createStartElement() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: tag only" . PHP_EOL;
echo XML_Util::createStartElement(
@@ -75,6 +76,8 @@
) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::createStartElement() basic tests=====
+
TEST: tag only
<myNs:myTag>
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_createTagFromArray.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_createTagFromArray.phpt
diff -u pear/XML_Util/tests/testBasic_createTagFromArray.phpt:1.2 pear/XML_Util/tests/testBasic_createTagFromArray.phpt:1.3
--- pear/XML_Util/tests/testBasic_createTagFromArray.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_createTagFromArray.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::createTagFromArray() basic tests=====' . PHP_EOL . PHP_EOL;
$bad = array(
"foo" => "bar",
@@ -93,6 +94,8 @@
echo XML_Util::createTagFromArray($tag4, XML_UTIL_REPLACE_ENTITIES, true, ' ', '^', false) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::createTagFromArray() basic tests=====
+
TEST: basic usage with an invalid array
You must either supply a qualified name (qname) or local tag name (localPart).
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_createTag.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_createTag.phpt
diff -u pear/XML_Util/tests/testBasic_createTag.phpt:1.2 pear/XML_Util/tests/testBasic_createTag.phpt:1.3
--- pear/XML_Util/tests/testBasic_createTag.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_createTag.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::createTag() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute" . PHP_EOL;
echo XML_Util::createTag(
@@ -116,6 +117,8 @@
) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::createTag() basic tests=====
+
TEST: tag with attribute
<myNs:myTag foo="bar" />
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_getDocTypeDeclaration.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_getDocTypeDeclaration.phpt
diff -u pear/XML_Util/tests/testBasic_getDocTypeDeclaration.phpt:1.2 pear/XML_Util/tests/testBasic_getDocTypeDeclaration.phpt:1.3
--- pear/XML_Util/tests/testBasic_getDocTypeDeclaration.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_getDocTypeDeclaration.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::getDocTypeDeclaration() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: using root only" . PHP_EOL;
echo XML_Util::getDocTypeDeclaration("rootTag") . PHP_EOL . PHP_EOL;
@@ -14,6 +15,8 @@
echo XML_Util::getDocTypeDeclaration("rootTag", "myDocType.dtd") . PHP_EOL . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::getDocTypeDeclaration() basic tests=====
+
TEST: using root only
<!DOCTYPE rootTag>
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_getXmlDeclaration.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_getXmlDeclaration.phpt
diff -u pear/XML_Util/tests/testBasic_getXmlDeclaration.phpt:1.2 pear/XML_Util/tests/testBasic_getXmlDeclaration.phpt:1.3
--- pear/XML_Util/tests/testBasic_getXmlDeclaration.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_getXmlDeclaration.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::getXmlDeclaration() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: using version only" . PHP_EOL;
echo XML_Util::getXMLDeclaration("1.0") . PHP_EOL . PHP_EOL;
@@ -20,6 +21,8 @@
echo XML_Util::getXMLDeclaration("1.0", null, true) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::getXmlDeclaration() basic tests=====
+
TEST: using version only
<?xml version="1.0"?>
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_isValidName.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_isValidName.phpt
diff -u pear/XML_Util/tests/testBasic_isValidName.phpt:1.2 pear/XML_Util/tests/testBasic_isValidName.phpt:1.3
--- pear/XML_Util/tests/testBasic_isValidName.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_isValidName.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::isValidName() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: valid tag" . PHP_EOL;
$result = XML_Util::isValidName("alpha-x_y_z.123");
@@ -24,6 +25,8 @@
}
?>
--EXPECT--
+=====XML_Util::isValidName() basic tests=====
+
TEST: valid tag
Valid XML name.
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_raiseError.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_raiseError.phpt
diff -u pear/XML_Util/tests/testBasic_raiseError.phpt:1.2 pear/XML_Util/tests/testBasic_raiseError.phpt:1.3
--- pear/XML_Util/tests/testBasic_raiseError.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_raiseError.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::raiseError() basic tests=====' . PHP_EOL . PHP_EOL;
$error = XML_Util::raiseError("I am an error", 12345);
if (is_a($error, 'PEAR_Error')) {
@@ -13,4 +14,6 @@
}
?>
--EXPECT--
+=====XML_Util::raiseError() basic tests=====
+
PEAR Error: I am an error
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_replaceEntities.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_replaceEntities.phpt
diff -u pear/XML_Util/tests/testBasic_replaceEntities.phpt:1.2 pear/XML_Util/tests/testBasic_replaceEntities.phpt:1.3
--- pear/XML_Util/tests/testBasic_replaceEntities.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_replaceEntities.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::replaceEntities() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: basic usage" . PHP_EOL;
echo XML_Util::replaceEntities("This string contains < & >.") . PHP_EOL . PHP_EOL;
@@ -20,6 +21,8 @@
echo XML_Util::replaceEntities("This string contains < & >.", XML_UTIL_ENTITIES_HTML) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::replaceEntities() basic tests=====
+
TEST: basic usage
This string contains < & >.
@@ -31,3 +34,4 @@
TEST: basic usage with ENTITIES_HTML
This string contains < & >.
+
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_reverseEntities.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_reverseEntities.phpt
diff -u pear/XML_Util/tests/testBasic_reverseEntities.phpt:1.2 pear/XML_Util/tests/testBasic_reverseEntities.phpt:1.3
--- pear/XML_Util/tests/testBasic_reverseEntities.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_reverseEntities.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::reverseEntities() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: basic usage" . PHP_EOL;
echo XML_Util::reverseEntities("This string contains < & >.") . PHP_EOL . PHP_EOL;
@@ -20,6 +21,8 @@
echo XML_Util::reverseEntities("This string contains < & >.", XML_UTIL_ENTITIES_HTML) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
+=====XML_Util::reverseEntities() basic tests=====
+
TEST: basic usage
This string contains < & >.
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBasic_splitQualifiedName.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBasic_splitQualifiedName.phpt
diff -u pear/XML_Util/tests/testBasic_splitQualifiedName.phpt:1.2 pear/XML_Util/tests/testBasic_splitQualifiedName.phpt:1.3
--- pear/XML_Util/tests/testBasic_splitQualifiedName.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBasic_splitQualifiedName.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util::splitQualifiedName() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: basic usage without namespace" . PHP_EOL;
$return = XML_Util::splitQualifiedName("xslt:stylesheet");
@@ -20,6 +21,8 @@
echo PHP_EOL;
?>
--EXPECT--
+=====XML_Util::splitQualifiedName() basic tests=====
+
TEST: basic usage without namespace
namespace => xslt
localPart => stylesheet
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBug_4950.phpt?r1=1.4&r2=1.5&diff_format=u
Index: pear/XML_Util/tests/testBug_4950.phpt
diff -u pear/XML_Util/tests/testBug_4950.phpt:1.4 pear/XML_Util/tests/testBug_4950.phpt:1.5
--- pear/XML_Util/tests/testBug_4950.phpt:1.4 Mon May 5 16:37:22 2008
+++ pear/XML_Util/tests/testBug_4950.phpt Mon May 5 21:32:27 2008
@@ -6,12 +6,16 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util tests for Bug #4950 "Incorrect CDATA serializing"=====' . PHP_EOL . PHP_EOL;
echo "TEST: test case provided in bug report" . PHP_EOL;
echo XML_Util::createTag("test", array(), "Content ]]></test> here!",
- null, XML_UTIL_CDATA_SECTION);
+ null, XML_UTIL_CDATA_SECTION) . PHP_EOL;
?>
--EXPECT--
+=====XML_Util tests for Bug #4950 "Incorrect CDATA serializing"=====
+
TEST: test case provided in bug report
<test><![CDATA[Content ]]]]><![CDATA[></test> here!]]></test>
+
http://cvs.php.net/viewvc.cgi/pear/XML_Util/tests/testBug_5392.phpt?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Util/tests/testBug_5392.phpt
diff -u pear/XML_Util/tests/testBug_5392.phpt:1.2 pear/XML_Util/tests/testBug_5392.phpt:1.3
--- pear/XML_Util/tests/testBug_5392.phpt:1.2 Mon May 5 14:27:43 2008
+++ pear/XML_Util/tests/testBug_5392.phpt Mon May 5 21:32:27 2008
@@ -6,6 +6,7 @@
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
+echo '=====XML_Util tests for Bug #5392 "encoding of ISO-8859-1 is the only supported encoding"=====' . PHP_EOL . PHP_EOL;
echo "TEST: test case provided in bug report" . PHP_EOL;
$data = 'This data contains special chars like'
@@ -23,6 +24,7 @@
?>
--EXPECT--
+=====XML_Util tests for Bug #5392 "encoding of ISO-8859-1 is the only supported encoding"=====
TEST: test case provided in bug report
This data contains special chars like <, >, & and " as well as ä, ö, ß, à and ê
This data contains special chars like <, >, & and " as well as ä, ö, ß, à and ê