Current Path: > > opt > cloudlinux > alt-php55 > root > usr > share > > pear > test > XML_Util > tests
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
AbstractUnitTests.php | File | 424 bytes | May 12 2025 16:39:16. | |
ApiVersionTests.php | File | 221 bytes | May 12 2025 16:39:16. | |
AttributesToStringTests.php | File | 7702 bytes | May 12 2025 16:39:16. | |
Bug18343Tests.php | File | 1742 bytes | May 12 2025 16:39:16. | |
Bug21177Tests.php | File | 1054 bytes | May 12 2025 16:39:16. | |
Bug21184Tests.php | File | 450 bytes | May 12 2025 16:39:16. | |
Bug4950Tests.php | File | 729 bytes | May 12 2025 16:39:16. | |
Bug5392Tests.php | File | 767 bytes | May 12 2025 16:39:16. | |
CollapseEmptyTagsTests.php | File | 4353 bytes | May 12 2025 16:39:16. | |
CreateCDataSectionTests.php | File | 362 bytes | May 12 2025 16:39:16. | |
CreateCommentTests.php | File | 340 bytes | May 12 2025 16:39:16. | |
CreateEndElementTests.php | File | 613 bytes | May 12 2025 16:39:16. | |
CreateStartElementTests.php | File | 5410 bytes | May 12 2025 16:39:16. | |
CreateTagFromArrayTests.php | File | 13492 bytes | May 12 2025 16:39:16. | |
CreateTagTests.php | File | 7978 bytes | May 12 2025 16:39:16. | |
GetDocTypeDeclarationTests.php | File | 1779 bytes | May 12 2025 16:39:16. | |
GetXmlDeclarationTests.php | File | 1164 bytes | May 12 2025 16:39:16. | |
IsValidNameTests.php | File | 1983 bytes | May 12 2025 16:39:16. | |
RaiseErrorTests.php | File | 448 bytes | May 12 2025 16:39:16. | |
ReplaceEntitiesTests.php | File | 4321 bytes | May 12 2025 16:39:16. | |
ReverseEntitiesTests.php | File | 4310 bytes | May 12 2025 16:39:16. | |
SplitQualifiedNameTests.php | File | 839 bytes | May 12 2025 16:39:16. |
<?php /** * Bug #18343 "Entities in file names decoded during packaging" * * No matter what flags are given to createTagFromArray(), * an attribute must *always* be at least ENTITIES_XML encoded. * * @link https://pear.php.net/bugs/bug.php?id=18343 */ class Bug18343Tests extends AbstractUnitTests { private $tagArray = array( "qname" => "install", "attributes" => array( "as" => "Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&s=Newsweek", "name" => "test/Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&s=Newsweek", ) ); public function getFlagsToTest() { new XML_Util(); // for constants to be declared return array( array('no flag', null), array('false', false), array('ENTITIES_NONE', XML_UTIL_ENTITIES_NONE), array('ENTITIES_XML', XML_UTIL_ENTITIES_XML), array('ENTITIES_XML_REQUIRED', XML_UTIL_ENTITIES_XML_REQUIRED), array('ENTITIES_HTML', XML_UTIL_ENTITIES_HTML), array('REPLACE_ENTITIES', XML_UTIL_REPLACE_ENTITIES), ); } /** * @dataProvider getFlagsToTest() */ public function testCreateTagFromArrayForBug18343($key, $flag) { // all flags for the candidate input should return the same result $expected = <<< EOF <install as="Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&s=Newsweek" name="test/Horde/Feed/fixtures/lexicon/http-p.moreover.com-cgi-local-page%2Fo=rss&s=Newsweek" /> EOF; $this->assertEquals($expected, XML_Util::createTagFromArray($this->tagArray, $flag), "Failed bugcheck for $key."); } }
SILENT KILLER Tool