OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
php84
/
usr
/
share
/
pear
/
test
/
XML_Util
/
tests
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
01/29/2025 12:55:23 PM
rwxr-xr-x
π
AbstractUnitTests.php
424 bytes
12/17/2024 06:12:51 PM
rw-r--r--
π
ApiVersionTests.php
221 bytes
12/17/2024 06:12:51 PM
rw-r--r--
π
AttributesToStringTests.php
7.52 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
Bug18343Tests.php
1.7 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
Bug21177Tests.php
1.03 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
Bug21184Tests.php
450 bytes
12/17/2024 06:12:51 PM
rw-r--r--
π
Bug4950Tests.php
729 bytes
12/17/2024 06:12:51 PM
rw-r--r--
π
Bug5392Tests.php
767 bytes
12/17/2024 06:12:51 PM
rw-r--r--
π
CollapseEmptyTagsTests.php
4.25 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
CreateCDataSectionTests.php
362 bytes
12/17/2024 06:12:51 PM
rw-r--r--
π
CreateCommentTests.php
340 bytes
12/17/2024 06:12:51 PM
rw-r--r--
π
CreateEndElementTests.php
613 bytes
12/17/2024 06:12:51 PM
rw-r--r--
π
CreateStartElementTests.php
5.28 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
CreateTagFromArrayTests.php
13.18 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
CreateTagTests.php
7.79 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
GetDocTypeDeclarationTests.php
1.74 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
GetXmlDeclarationTests.php
1.14 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
IsValidNameTests.php
1.94 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
RaiseErrorTests.php
448 bytes
12/17/2024 06:12:51 PM
rw-r--r--
π
ReplaceEntitiesTests.php
4.22 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
ReverseEntitiesTests.php
4.21 KB
12/17/2024 06:12:51 PM
rw-r--r--
π
SplitQualifiedNameTests.php
839 bytes
12/17/2024 06:12:51 PM
rw-r--r--
Editing: Bug5392Tests.php
Close
<?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."); } }