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: GetXmlDeclarationTests.php
Close
<?php class GetXMLDeclarationTests extends AbstractUnitTests { /** * @covers XML_Util::getXMLDeclaration() */ public function testGetXMLDeclarationUsingVersion() { $version = "1.0"; $expected = "<?xml version=\"1.0\"?>"; $this->assertEquals($expected, XML_Util::getXMLDeclaration($version)); } /** * @covers XML_Util::getXMLDeclaration() */ public function testGetXMLDeclarationUsingVersionAndEncodingAndStandalone() { $version = "1.0"; $encoding = "UTF-8"; $standalone = true; $expected = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"; $this->assertEquals($expected, XML_Util::getXMLDeclaration($version, $encoding, $standalone)); } /** * @covers XML_Util::getXMLDeclaration() */ public function testGetXMLDeclarationUsingVersionAndStandalone() { $version = "1.0"; $encoding = null; $standalone = true; $expected = "<?xml version=\"1.0\" standalone=\"yes\"?>"; $this->assertEquals($expected, XML_Util::getXMLDeclaration($version, $encoding, $standalone)); } }