PATH: //opt/alt/php74/usr/share/pear/test/XML_Util/tests
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
π AbstractUnitTests.php
β
X
π ApiVersionTests.php
β
X
π AttributesToStringTests.php
β
X
π Bug18343Tests.php
β
X
π Bug21177Tests.php
β
X
π Bug21184Tests.php
β
X
π Bug4950Tests.php
β
X
π Bug5392Tests.php
β
X
π CollapseEmptyTagsTests.php
β
X
π CreateCDataSectionTests.php
β
X
π CreateCommentTests.php
β
X
π CreateEndElementTests.php
β
X
π CreateStartElementTests.php
β
X
π CreateTagFromArrayTests.php
β
X
π CreateTagTests.php
β
X
π GetDocTypeDeclarationTests.php
β
X
π GetXmlDeclarationTests.php
β
X
π IsValidNameTests.php
β
X
π RaiseErrorTests.php
β
X
π ReplaceEntitiesTests.php
β
X
π ReverseEntitiesTests.php
β
X
π SplitQualifiedNameTests.php
β
X
SAVING...
BERHASIL DIUBAH!
EDITING: Bug5392Tests.php
<?php /** * Bug #5392 "encoding of ISO-8859-1 is the only supported encoding" * * Original characters of the given encoding that are "replaced" * should then "reverse" back to perfectly match the original. * * @link https://pear.php.net/bugs/bug.php?id=5392 */ class Bug5392Tests extends AbstractUnitTests { public function testReplaceEntitiesForBug5392() { $original = 'This data contains special chars like <, >, & and " as well as Γ€, ΓΆ, Γ, Γ and Γͺ'; $replacedResult = XML_Util::replaceEntities($original, XML_UTIL_ENTITIES_HTML, "UTF-8"); $reversedResult = XML_Util::reverseEntities($replacedResult, XML_UTIL_ENTITIES_HTML, "UTF-8"); $this->assertEquals($original, $reversedResult, "Failed bugcheck."); } }
SIMPAN PERUBAHAN