✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.51
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/php52/usr/share/pear/test/XML_Util/tests//testBasic_replaceEntities.phpt
--TEST--
XML_Util::replaceEntities() basic tests
--CREDITS--
Chuck Burgess <ashnazg@php.net>
# created for v1.2.0a1 2008-05-04
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
echo '=====XML_Util::replaceEntities() basic tests=====' . PHP_EOL . PHP_EOL;

$data = 'This string contains < & >.';
$utf8 = 'This data contains special chars like <, >, & and " as well as ä, ö, ß, à and ê';

echo "TEST:  basic usage" . PHP_EOL;
echo XML_Util::replaceEntities($data) . PHP_EOL . PHP_EOL;

echo "TEST:  basic usage but with bogus \$replaceEntities arg" . PHP_EOL;
echo XML_Util::replaceEntities($data, 'I_AM_BOGUS') . PHP_EOL . PHP_EOL;

echo "TEST:  basic usage with ENTITIES_XML" . PHP_EOL;
echo XML_Util::replaceEntities($data, XML_UTIL_ENTITIES_XML) . PHP_EOL . PHP_EOL;

echo "TEST:  basic usage with ENTITIES_XML and UTF-8" . PHP_EOL;
echo XML_Util::replaceEntities($data, XML_UTIL_ENTITIES_XML, 'UTF-8') . PHP_EOL . PHP_EOL;

echo "TEST:  utf8 usage with ENTITIES_XML and UTF-8" . PHP_EOL;
echo XML_Util::replaceEntities($utf8, XML_UTIL_ENTITIES_XML, 'UTF-8') . PHP_EOL . PHP_EOL;

echo "TEST:  basic usage with ENTITIES_XML_REQUIRED" . PHP_EOL;
echo XML_Util::replaceEntities($data, XML_UTIL_ENTITIES_XML_REQUIRED) . PHP_EOL . PHP_EOL;

echo "TEST:  basic usage with ENTITIES_XML_REQUIRED and UTF-8" . PHP_EOL;
echo XML_Util::replaceEntities($data, XML_UTIL_ENTITIES_XML_REQUIRED, 'UTF-8') . PHP_EOL . PHP_EOL;

echo "TEST:  utf8 usage with ENTITIES_XML_REQUIRED and UTF-8" . PHP_EOL;
echo XML_Util::replaceEntities($utf8, XML_UTIL_ENTITIES_XML_REQUIRED, 'UTF-8') . PHP_EOL . PHP_EOL;

echo "TEST:  basic usage with ENTITIES_HTML" . PHP_EOL;
echo XML_Util::replaceEntities($data, XML_UTIL_ENTITIES_HTML) . PHP_EOL . PHP_EOL;

echo "TEST:  basic usage with ENTITIES_HTML and UTF-8" . PHP_EOL;
echo XML_Util::replaceEntities($data, XML_UTIL_ENTITIES_HTML, 'UTF-8') . PHP_EOL . PHP_EOL;

echo "TEST:  utf8 usage with ENTITIES_HTML and UTF-8" . PHP_EOL;
echo XML_Util::replaceEntities($utf8, XML_UTIL_ENTITIES_HTML, 'UTF-8') . PHP_EOL . PHP_EOL;
?>
--EXPECT--
=====XML_Util::replaceEntities() basic tests=====

TEST:  basic usage
This string contains &lt; &amp; &gt;.

TEST:  basic usage but with bogus $replaceEntities arg
This string contains < & >.

TEST:  basic usage with ENTITIES_XML
This string contains &lt; &amp; &gt;.

TEST:  basic usage with ENTITIES_XML and UTF-8
This string contains &lt; &amp; &gt;.

TEST:  utf8 usage with ENTITIES_XML and UTF-8
This data contains special chars like &lt;, &gt;, &amp; and &quot; as well as ä, ö, ß, à and ê

TEST:  basic usage with ENTITIES_XML_REQUIRED
This string contains &lt; &amp; >.

TEST:  basic usage with ENTITIES_XML_REQUIRED and UTF-8
This string contains &lt; &amp; >.

TEST:  utf8 usage with ENTITIES_XML_REQUIRED and UTF-8
This data contains special chars like &lt;, >, &amp; and &quot; as well as ä, ö, ß, à and ê

TEST:  basic usage with ENTITIES_HTML
This string contains &lt; &amp; &gt;.

TEST:  basic usage with ENTITIES_HTML and UTF-8
This string contains &lt; &amp; &gt;.

TEST:  utf8 usage with ENTITIES_HTML and UTF-8
This data contains special chars like &lt;, &gt;, &amp; and &quot; as well as &auml;, &ouml;, &szlig;, &agrave; and &ecirc;



Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
3 Mar 2024 10.40 PM
root / root
0755
testBasic_apiVersion.phpt
0.438 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_attributesToString.phpt
3.546 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_collapseEmptyTags.phpt
1.753 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_createCDataSection.phpt
0.482 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_createComment.phpt
0.46 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_createEndElement.phpt
0.68 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_createStartElement.phpt
3.685 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_createTag.phpt
5.777 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_createTagFromArray.phpt
9.091 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_getDocTypeDeclaration.phpt
1.48 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_getXmlDeclaration.phpt
1.14 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_isValidName.phpt
1.377 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_raiseError.phpt
0.49 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_replaceEntities.phpt
3.172 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_reverseEntities.phpt
3.157 KB
12 Dec 2019 3.05 PM
root / root
0644
testBasic_splitQualifiedName.phpt
0.96 KB
12 Dec 2019 3.05 PM
root / root
0644
testBug_18343.phpt
3.144 KB
12 Dec 2019 3.05 PM
root / root
0644
testBug_4950.phpt
0.659 KB
12 Dec 2019 3.05 PM
root / root
0644
testBug_5392.phpt
1.071 KB
12 Dec 2019 3.05 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF