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: Bug21177Tests.php
Close
<?php /** * Bug #21177 "XML_Util::collapseEmptyTags() can return NULL" * * PREG returns NULL when it encounters an error. * In this case, it was encountering PREG_BACKTRACK_LIMIT_ERROR. * * @link https://pear.php.net/bugs/bug.php?id=21177 */ class Bug21177Tests extends AbstractUnitTests { public function getTestCandidate() { $expected = '<id_mytest_yesorno />'; return array( array('<idmytestyesorno></idmytestyesorno>', '<idmytestyesorno />'), array('<idmytestyesorno />', '<idmytestyesorno />'), array('<id_mytest_yesorno></id_mytest_yesorno>', '<id_mytest_yesorno />'), array('<id_mytest_yesorno />', '<id_mytest_yesorno />'), ); } /** * @dataProvider getTestCandidate() */ public function testCollapseEmptyTagsForBug21177($original, $expected) { $this->assertEquals($expected, XML_Util::collapseEmptyTags($original, XML_UTIL_COLLAPSE_ALL), "Failed bugcheck."); } }