OXIESEC PANEL
- Current Dir:
/
/
opt
/
alt
/
php80
/
usr
/
share
/
pear
/
test
/
XML_Util
/
tests
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/16/2024 09:37:36 PM
rwxr-xr-x
📄
AbstractUnitTests.php
424 bytes
04/19/2021 12:04:50 PM
rw-r--r--
📄
ApiVersionTests.php
221 bytes
04/19/2021 12:04:50 PM
rw-r--r--
📄
AttributesToStringTests.php
7.52 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
Bug18343Tests.php
1.7 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
Bug21177Tests.php
1.03 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
Bug21184Tests.php
450 bytes
04/19/2021 12:04:50 PM
rw-r--r--
📄
Bug4950Tests.php
729 bytes
04/19/2021 12:04:50 PM
rw-r--r--
📄
Bug5392Tests.php
767 bytes
04/19/2021 12:04:50 PM
rw-r--r--
📄
CollapseEmptyTagsTests.php
4.25 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
CreateCDataSectionTests.php
362 bytes
04/19/2021 12:04:50 PM
rw-r--r--
📄
CreateCommentTests.php
340 bytes
04/19/2021 12:04:50 PM
rw-r--r--
📄
CreateEndElementTests.php
613 bytes
04/19/2021 12:04:50 PM
rw-r--r--
📄
CreateStartElementTests.php
5.28 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
CreateTagFromArrayTests.php
13.18 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
CreateTagTests.php
7.79 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
GetDocTypeDeclarationTests.php
1.74 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
GetXmlDeclarationTests.php
1.14 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
IsValidNameTests.php
1.17 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
RaiseErrorTests.php
448 bytes
04/19/2021 12:04:50 PM
rw-r--r--
📄
ReplaceEntitiesTests.php
4.22 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
ReverseEntitiesTests.php
4.21 KB
04/19/2021 12:04:50 PM
rw-r--r--
📄
SplitQualifiedNameTests.php
839 bytes
04/19/2021 12:04:50 PM
rw-r--r--
Editing: IsValidNameTests.php
Close
<?php class IsValidNameTests extends AbstractUnitTests { /** * @covers XML_Util::isValidName() */ public function testIsValidNameForTagNameThatIsValid() { $tagName = "alpha-x_y_z.123"; $result = XML_Util::isValidName($tagName); $this->assertTrue($result); } /** * @covers XML_Util::isValidName() */ public function testIsValidNameForTagNameWithInvalidCharacter() { $tagName = "invalidTag?"; $result = XML_Util::isValidName($tagName); $this->assertInstanceOf('PEAR_Error', $result); $expectedError = "XML names may only contain alphanumeric chars, period, hyphen, colon and underscores"; $this->assertEquals($expectedError, $result->getMessage()); } /** * @covers XML_Util::isValidName() */ public function testIsValidNameForTagNameWithInvalidStartingCharacter() { $tagName = "1234five"; $result = XML_Util::isValidName($tagName); $this->assertInstanceOf('PEAR_Error', $result); $expectedError = "XML names may only start with letter or underscore"; $this->assertEquals($expectedError, $result->getMessage()); } }