OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
php71
/
usr
/
share
/
pear
/
test
/
XML_Util
/
tests
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/16/2023 01:46:33 PM
rwxr-xr-x
📄
AbstractUnitTests.php
424 bytes
01/28/2020 05:26:33 PM
rw-r--r--
📄
ApiVersionTests.php
221 bytes
01/28/2020 05:26:33 PM
rw-r--r--
📄
AttributesToStringTests.php
7.52 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
Bug18343Tests.php
1.7 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
Bug21177Tests.php
1.03 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
Bug21184Tests.php
450 bytes
01/28/2020 05:26:33 PM
rw-r--r--
📄
Bug4950Tests.php
729 bytes
01/28/2020 05:26:33 PM
rw-r--r--
📄
Bug5392Tests.php
767 bytes
01/28/2020 05:26:33 PM
rw-r--r--
📄
CollapseEmptyTagsTests.php
4.25 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
CreateCDataSectionTests.php
362 bytes
01/28/2020 05:26:33 PM
rw-r--r--
📄
CreateCommentTests.php
340 bytes
01/28/2020 05:26:33 PM
rw-r--r--
📄
CreateEndElementTests.php
613 bytes
01/28/2020 05:26:33 PM
rw-r--r--
📄
CreateStartElementTests.php
5.28 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
CreateTagFromArrayTests.php
13.18 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
CreateTagTests.php
7.79 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
GetDocTypeDeclarationTests.php
1.74 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
GetXmlDeclarationTests.php
1.14 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
IsValidNameTests.php
1.17 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
RaiseErrorTests.php
448 bytes
01/28/2020 05:26:33 PM
rw-r--r--
📄
ReplaceEntitiesTests.php
4.22 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
ReverseEntitiesTests.php
4.21 KB
01/28/2020 05:26:33 PM
rw-r--r--
📄
SplitQualifiedNameTests.php
839 bytes
01/28/2020 05:26:33 PM
rw-r--r--
Editing: Bug4950Tests.php
Close
<?php /** * Bug #4950 "Incorrect CDATA serializing" * * Content that looks like CDATA end characters and tags * should still be recognized solely as content text. * * @link https://pear.php.net/bugs/bug.php?id=4950 */ class Bug4950Tests extends AbstractUnitTests { public function testCreateTagForBug4950() { $qname = "test"; $attributes = array(); $content = "Content ]]></test> here!"; $namespaceUrl = null; $expected = "<test><![CDATA[Content ]]]]><![CDATA[></test> here!]]></test>"; $result = XML_Util::createTag($qname, $attributes, $content, $namespaceUrl, XML_UTIL_CDATA_SECTION); $this->assertEquals($expected, $result, "Failed bugcheck."); } }