X7ROOT File Manager
Current Path:
/opt/alt/php74/usr/share/pear/test/XML_Util/tests
opt
/
alt
/
php74
/
usr
/
share
/
pear
/
test
/
XML_Util
/
tests
/
ðŸ“
..
📄
AbstractUnitTests.php
(424 B)
📄
ApiVersionTests.php
(221 B)
📄
AttributesToStringTests.php
(7.52 KB)
📄
Bug18343Tests.php
(1.7 KB)
📄
Bug21177Tests.php
(1.03 KB)
📄
Bug21184Tests.php
(450 B)
📄
Bug4950Tests.php
(729 B)
📄
Bug5392Tests.php
(767 B)
📄
CollapseEmptyTagsTests.php
(4.25 KB)
📄
CreateCDataSectionTests.php
(362 B)
📄
CreateCommentTests.php
(340 B)
📄
CreateEndElementTests.php
(613 B)
📄
CreateStartElementTests.php
(5.28 KB)
📄
CreateTagFromArrayTests.php
(13.18 KB)
📄
CreateTagTests.php
(7.79 KB)
📄
GetDocTypeDeclarationTests.php
(1.74 KB)
📄
GetXmlDeclarationTests.php
(1.14 KB)
📄
IsValidNameTests.php
(1.94 KB)
📄
RaiseErrorTests.php
(448 B)
📄
ReplaceEntitiesTests.php
(4.22 KB)
📄
ReverseEntitiesTests.php
(4.21 KB)
📄
SplitQualifiedNameTests.php
(839 B)
Editing: Bug5392Tests.php
<?php /** * Bug #5392 "encoding of ISO-8859-1 is the only supported encoding" * * Original characters of the given encoding that are "replaced" * should then "reverse" back to perfectly match the original. * * @link https://pear.php.net/bugs/bug.php?id=5392 */ class Bug5392Tests extends AbstractUnitTests { public function testReplaceEntitiesForBug5392() { $original = 'This data contains special chars like <, >, & and " as well as ä, ö, ß, à and ê'; $replacedResult = XML_Util::replaceEntities($original, XML_UTIL_ENTITIES_HTML, "UTF-8"); $reversedResult = XML_Util::reverseEntities($replacedResult, XML_UTIL_ENTITIES_HTML, "UTF-8"); $this->assertEquals($original, $reversedResult, "Failed bugcheck."); } }
Upload File
Create Folder