PATH:
opt
/
cpanel
/
ea-php72
/
root
/
usr
/
share
/
tests
/
pear
/
XML_Util
/
tests
<?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)); } }
[-] CreateStartElementTests.php
[edit]
[-] CreateTagFromArrayTests.php
[edit]
[-] CreateEndElementTests.php
[edit]
[-] AttributesToStringTests.php
[edit]
[+]
..
[-] RaiseErrorTests.php
[edit]
[-] Bug5392Tests.php
[edit]
[-] Bug18343Tests.php
[edit]
[-] Bug21177Tests.php
[edit]
[-] ApiVersionTests.php
[edit]
[-] AbstractUnitTests.php
[edit]
[-] Bug21184Tests.php
[edit]
[-] ReverseEntitiesTests.php
[edit]
[-] CollapseEmptyTagsTests.php
[edit]
[-] Bug4950Tests.php
[edit]
[-] CreateTagTests.php
[edit]
[-] GetDocTypeDeclarationTests.php
[edit]
[-] SplitQualifiedNameTests.php
[edit]
[-] CreateCommentTests.php
[edit]
[-] IsValidNameTests.php
[edit]
[-] GetXmlDeclarationTests.php
[edit]
[-] CreateCDataSectionTests.php
[edit]
[-] ReplaceEntitiesTests.php
[edit]