?PNG
IHDR ? f ??C1 sRGB ?? gAMA ?a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
PK |[ $ Console_Getopt/tests/001-getopt.phptnu W+A --TEST--
Console_Getopt
--FILE--
$d) {
if ($i++ > 0) {
print ", ";
}
print $d[0] . '=' . $d[1];
}
print "\n";
print "params: " . implode(", ", $non_opts) . "\n";
print "\n";
}
test("-abc", "abc");
test("-abc foo", "abc");
test("-abc foo", "abc:");
test("-abc foo bar gazonk", "abc");
test("-abc foo bar gazonk", "abc:");
test("-a -b -c", "abc");
test("-a -b -c", "abc:");
test("-abc", "ab:c");
test("-abc foo -bar gazonk", "abc");
?>
--EXPECT--
options: a=, b=, c=
params:
options: a=, b=, c=
params: foo
options: a=, b=, c=foo
params:
options: a=, b=, c=
params: foo, bar, gazonk
options: a=, b=, c=foo
params: bar, gazonk
options: a=, b=, c=
params:
Console_Getopt: option requires an argument --c
options: a=, b=c
params:
options: a=, b=, c=
params: foo, -bar, gazonk
PK |[|E E " Console_Getopt/tests/bug13140.phptnu W+A --TEST--
Console_Getopt [bug 13140]
--SKIPIF--
--FILE--
getopt2($cg->readPHPArgv(), 't', array('test'), true));
print_r($cg->getopt2($cg->readPHPArgv(), 'bar', array('foo'), true));
?>
--EXPECT--
Array
(
[0] => Array
(
[0] => Array
(
[0] => --test
[1] =>
)
)
[1] => Array
(
[0] => thisshouldbehere
)
)
Array
(
[0] => Array
(
[0] => Array
(
[0] => --foo
[1] =>
)
[1] => Array
(
[0] => b
[1] =>
)
[2] => Array
(
[0] => a
[1] =>
)
[3] => Array
(
[0] => r
[1] =>
)
[4] => Array
(
[0] => r
[1] =>
)
)
[1] => Array
(
[0] => thisshouldbehere
)
)
PK |[ " Console_Getopt/tests/bug11068.phptnu W+A --TEST--
Console_Getopt [bug 11068]
--SKIPIF--
--FILE--
getMessage()."\n";
echo 'FATAL';
exit;
}
print_r($ret);
?>
--EXPECT--
Array
(
[0] => Array
(
[0] => Array
(
[0] => f
[1] => jjohnston@mail.com
)
[1] => Array
(
[0] => --to
[1] => hi
)
)
[1] => Array
(
[0] => -
)
)PK |[ " Console_Getopt/tests/bug10557.phptnu W+A --TEST--
Console_Getopt [bug 10557]
--SKIPIF--
--FILE--
getMessage()."\n";
echo 'FATAL';
exit;
}
print_r($ret);
?>
--EXPECT--
Console_Getopt: option requires an argument --to
FATALPK |[c? 3 XML_Util/tests/testBasic_getDocTypeDeclaration.phptnu W+A --TEST--
XML_Util::getDocTypeDeclaration() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
'http://pear.php.net/dtd/package-1.0',
'id' => '-//PHP//PEAR/DTD PACKAGE 0.1'
);
$dtdEntry = '';
echo "TEST: using root and an array URI" . PHP_EOL;
echo XML_Util::getDocTypeDeclaration("rootTag", $uri) . PHP_EOL . PHP_EOL;
echo "TEST: using root and an array URI and an internal DTD entry" . PHP_EOL;
echo XML_Util::getDocTypeDeclaration("rootTag", $uri, $dtdEntry) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
=====XML_Util::getDocTypeDeclaration() basic tests=====
TEST: using root only
TEST: using root and a string URI
TEST: using root and an array URI
TEST: using root and an array URI and an internal DTD entry
]>
PK |[l - XML_Util/tests/testBasic_reverseEntities.phptnu W+A --TEST--
XML_Util::reverseEntities() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
--EXPECT--
=====XML_Util::reverseEntities() basic tests=====
TEST: basic usage
This string contains < & >.
TEST: basic usage but with bogus $replaceEntities arg
This string contains < & >.
TEST: basic usage with ENTITIES_XML
This string contains < & >.
TEST: basic usage with ENTITIES_XML and UTF-8
This string contains < & >.
TEST: utf8 usage with ENTITIES_XML and UTF-8
This data contains special chars like <, >, & and " as well as ä, ö, ß, à and ê
TEST: basic usage with ENTITIES_XML_REQUIRED
This string contains < & >.
TEST: basic usage with ENTITIES_XML_REQUIRED and UTF-8
This string contains < & >.
TEST: utf8 usage with ENTITIES_XML_REQUIRED and UTF-8
This data contains special chars like <, >, & and " as well as ä, ö, ß, à and ê
TEST: basic usage with ENTITIES_HTML
This string contains < & >.
TEST: basic usage with ENTITIES_HTML and UTF-8
This string contains < & >.
TEST: utf8 usage with ENTITIES_HTML and UTF-8
This data contains special chars like <, >, & and " as well as ä, ö, ß, à and ê
PK |[l ' XML_Util/tests/testBasic_createTag.phptnu W+A --TEST--
XML_Util::createTag() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
"bar")
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute and content" . PHP_EOL;
echo XML_Util::createTag(
"myNs:myTag",
array("foo" => "bar"),
"This is inside the tag"
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute, content, and namespace" . PHP_EOL;
echo XML_Util::createTag(
"myNs:myTag",
array("foo" => "bar"),
"This is inside the tag",
"http://www.w3c.org/myNs#"
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute, content, namespace, and REPLACE_ENTITIES" . PHP_EOL;
echo XML_Util::createTag(
"myNs:myTag",
array("foo" => "bar"),
"This is inside the tag and has < & @ > in it",
"http://www.w3c.org/myNs#",
XML_UTIL_REPLACE_ENTITIES
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute, content, namespace, and CDATA_SECTION" . PHP_EOL;
echo XML_Util::createTag(
"myNs:myTag",
array("foo" => "bar"),
"This is inside the tag and has < & @ > in it",
"http://www.w3c.org/myNs#",
XML_UTIL_CDATA_SECTION
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, and multiline = false" . PHP_EOL;
echo XML_Util::createTag(
"myNs:myTag",
array("foo" => "bar"),
"This is inside the tag and has < & @ > in it",
"http://www.w3c.org/myNs#",
XML_UTIL_REPLACE_ENTITIES,
false
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, and multiline = true" . PHP_EOL;
echo XML_Util::createTag(
"myNs:myTag",
array("foo" => "bar"),
"This is inside the tag and has < & @ > in it",
"http://www.w3c.org/myNs#",
XML_UTIL_REPLACE_ENTITIES,
true
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, multiline = true, and indent = (2 spaces)" . PHP_EOL;
echo XML_Util::createTag(
"myNs:myTag",
array("foo" => "bar"),
"This is inside the tag and has < & @ > in it",
"http://www.w3c.org/myNs#",
XML_UTIL_REPLACE_ENTITIES,
true,
' '
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, multiline = true, indent = (2 spaces), and linebreak = '^'" . PHP_EOL;
echo XML_Util::createTag(
"myNs:myTag",
array("foo" => "bar"),
"This is inside the tag and has < & @ > in it",
"http://www.w3c.org/myNs#",
XML_UTIL_REPLACE_ENTITIES,
true,
' ',
'^'
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, multiline = true, indent = (2 spaces), linebreak = '^', and sortAttributes = true" . PHP_EOL;
echo XML_Util::createTag(
"myNs:myTag",
array("foo" => "bar", "boo" => "baz"),
"This is inside the tag and has < & @ > in it",
"http://www.w3c.org/myNs#",
XML_UTIL_REPLACE_ENTITIES,
true,
' ',
'^',
true
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, multiline = true, indent = (2 spaces), linebreak = '^', and sortAttributes = false" . PHP_EOL;
echo XML_Util::createTag(
"myNs:myTag",
array("foo" => "bar", "boo" => "baz"),
"This is inside the tag and has < & @ > in it",
"http://www.w3c.org/myNs#",
XML_UTIL_REPLACE_ENTITIES,
true,
' ',
'^',
false
) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
=====XML_Util::createTag() basic tests=====
TEST: tag with attribute
TEST: tag with attribute and content
This is inside the tag
TEST: tag with attribute, content, and namespace
This is inside the tag
TEST: tag with attribute, content, namespace, and REPLACE_ENTITIES
This is inside the tag and has < & @ > in it
TEST: tag with attribute, content, namespace, and CDATA_SECTION
in it]]>
TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, and multiline = false
This is inside the tag and has < & @ > in it
TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, and multiline = true
This is inside the tag and has < & @ > in it
TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, multiline = true, and indent = (2 spaces)
This is inside the tag and has < & @ > in it
TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, multiline = true, indent = (2 spaces), and linebreak = '^'
This is inside the tag and has < & @ > in it
TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, multiline = true, indent = (2 spaces), linebreak = '^', and sortAttributes = true
This is inside the tag and has < & @ > in it
TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, multiline = true, indent = (2 spaces), linebreak = '^', and sortAttributes = false
This is inside the tag and has < & @ > in it
PK |[. 0 XML_Util/tests/testBasic_createCDataSection.phptnu W+A --TEST--
XML_Util::createCDataSection() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
--EXPECT--
=====XML_Util::createCDataSection() basic tests=====
TEST: basic usage
PK |[h / XML_Util/tests/testBasic_collapseEmptyTags.phptnu W+A --TEST--
XML_Util::collapseEmptyTags() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
";
$otherTag = "baz";
$xhtmlTag = "";
echo "TEST: basic usage" . PHP_EOL;
echo XML_Util::collapseEmptyTags($emptyTag) . PHP_EOL . PHP_EOL;
echo "TEST: basic usage alongside non-empty tag" . PHP_EOL;
echo XML_Util::collapseEmptyTags($emptyTag . $otherTag) . PHP_EOL . PHP_EOL;
echo "TEST: one empty tag, with COLLAPSE_ALL set" . PHP_EOL;
echo XML_Util::collapseEmptyTags($emptyTag, XML_UTIL_COLLAPSE_ALL) . PHP_EOL . PHP_EOL;
echo "TEST: one empty tag alongside non-empty tag, with COLLAPSE_ALL set" . PHP_EOL;
echo XML_Util::collapseEmptyTags($emptyTag . $otherTag, XML_UTIL_COLLAPSE_ALL) . PHP_EOL . PHP_EOL;
echo "TEST: one empty tag, with COLLAPSE_XHTML_ONLY set" . PHP_EOL;
echo XML_Util::collapseEmptyTags($emptyTag, XML_UTIL_COLLAPSE_XHTML_ONLY) . PHP_EOL . PHP_EOL;
echo "TEST: one empty tag alongside non-empty tag, with COLLAPSE_XHTML_ONLY set" . PHP_EOL;
echo XML_Util::collapseEmptyTags($emptyTag . $xhtmlTag . $otherTag, XML_UTIL_COLLAPSE_XHTML_ONLY) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
=====XML_Util::collapseEmptyTags() basic tests=====
TEST: basic usage
TEST: basic usage alongside non-empty tag
baz
TEST: one empty tag, with COLLAPSE_ALL set
TEST: one empty tag alongside non-empty tag, with COLLAPSE_ALL set
baz
TEST: one empty tag, with COLLAPSE_XHTML_ONLY set
TEST: one empty tag alongside non-empty tag, with COLLAPSE_XHTML_ONLY set
baz
PK |[^r . XML_Util/tests/testBasic_createEndElement.phptnu W+A --TEST--
XML_Util::createEndElement() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
--EXPECT--
=====XML_Util::createEndElement() basic tests=====
TEST: basic usage (myTag)
TEST: basic usage with a namespaced tag (myNs:myTag)
PK |[ҽyI ( XML_Util/tests/testBasic_raiseError.phptnu W+A --TEST--
XML_Util::raiseError() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
getMessage() . PHP_EOL;
}
?>
--EXPECT--
=====XML_Util::raiseError() basic tests=====
PEAR Error: I am an error
PK |[X ) XML_Util/tests/testBasic_isValidName.phptnu W+A --TEST--
XML_Util::isValidName() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
getMessage() . PHP_EOL . PHP_EOL;
} else {
print "Valid XML name." . PHP_EOL . PHP_EOL;
}
echo "TEST: invalid tag" . PHP_EOL;
$result = XML_Util::isValidName("invalidTag?");
if (is_a($result, 'PEAR_Error')) {
print "Invalid XML name: " . $result->getMessage() . PHP_EOL . PHP_EOL;
} else {
print "Valid XML name." . PHP_EOL . PHP_EOL;
}
echo "TEST: invalid tag that doesn't start with a letter" . PHP_EOL;
$result = XML_Util::isValidName("1234five");
if (is_a($result, 'PEAR_Error')) {
print "Invalid XML name: " . $result->getMessage() . PHP_EOL . PHP_EOL;
} else {
print "Valid XML name." . PHP_EOL . PHP_EOL;
}
?>
--EXPECT--
=====XML_Util::isValidName() basic tests=====
TEST: valid tag
Valid XML name.
TEST: invalid tag
Invalid XML name: XML names may only contain alphanumeric chars, period, hyphen, colon and underscores
TEST: invalid tag that doesn't start with a letter
Invalid XML name: XML names may only start with letter or underscore
PK |[
/ XML_Util/tests/testBasic_getXmlDeclaration.phptnu W+A --TEST--
XML_Util::getXmlDeclaration() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
--EXPECT--
=====XML_Util::getXmlDeclaration() basic tests=====
TEST: using version only
TEST: using version and encoding
TEST: using version, encoding, and standalone flag
TEST: using version and standalone flag
PK |[eb 0 XML_Util/tests/testBasic_createStartElement.phptnu W+A --TEST--
XML_Util::createStartElement() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
"bar")
) . PHP_EOL . PHP_EOL;
echo "TEST: tag only, passing '' as attribute arg" . PHP_EOL;
echo XML_Util::createStartElement(
'myNs:myTag',
''
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attributes and namespace" . PHP_EOL;
echo XML_Util::createStartElement(
"myNs:myTag",
array("foo" => "bar"),
"http://www.w3c.org/myNs#"
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with empty attributes, whose namespaceUri is not a full namespace" . PHP_EOL;
echo XML_Util::createStartElement(
'myTag',
'',
'foo'
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attributes, namespace, and multiline = true" . PHP_EOL;
echo XML_Util::createStartElement(
"myNs:myTag",
array("foo" => "bar"),
"http://www.w3c.org/myNs#",
true
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attributes, namespace, multiline = true, and indent = (2 spaces only)" . PHP_EOL;
echo XML_Util::createStartElement(
"myNs:myTag",
array("foo" => "bar"),
"http://www.w3c.org/myNs#",
true,
' '
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attributes, namespace, multiline = true, indent = (2 spaces only), and linebreak = '^'" . PHP_EOL;
echo XML_Util::createStartElement(
"myNs:myTag",
array("foo" => "bar"),
"http://www.w3c.org/myNs#",
true,
' ',
'^'
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attributes, namespace, multiline = true, indent = (2 spaces only), linebreak = '^', and sortAttributes = true" . PHP_EOL;
echo XML_Util::createStartElement(
"myNs:myTag",
array("foo" => "bar", "boo" => "baz"),
"http://www.w3c.org/myNs#",
true,
' ',
'^',
true
) . PHP_EOL . PHP_EOL;
echo "TEST: tag with attributes, namespace, multiline = true, indent = (2 spaces only), linebreak = '^', and sortAttributes = false" . PHP_EOL;
echo XML_Util::createStartElement(
"myNs:myTag",
array("foo" => "bar", "boo" => "baz"),
"http://www.w3c.org/myNs#",
true,
' ',
'^',
false
) . PHP_EOL . PHP_EOL;
?>
--EXPECT--
=====XML_Util::createStartElement() basic tests=====
TEST: tag only
TEST: tag with attributes
TEST: tag only, passing '' as attribute arg
TEST: tag with attributes and namespace
TEST: tag with empty attributes, whose namespaceUri is not a full namespace
TEST: tag with attributes, namespace, and multiline = true
TEST: tag with attributes, namespace, multiline = true, and indent = (2 spaces only)
TEST: tag with attributes, namespace, multiline = true, indent = (2 spaces only), and linebreak = '^'
TEST: tag with attributes, namespace, multiline = true, indent = (2 spaces only), linebreak = '^', and sortAttributes = true
TEST: tag with attributes, namespace, multiline = true, indent = (2 spaces only), linebreak = '^', and sortAttributes = false
PK |[W= + XML_Util/tests/testBasic_createComment.phptnu W+A --TEST--
XML_Util::createComment() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
--EXPECT--
=====XML_Util::createComment() basic tests=====
TEST: basic usage
PK |[' ( XML_Util/tests/testBasic_apiVersion.phptnu W+A --TEST--
XML_Util::apiVersion() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
--EXPECT--
=====XML_Util::apiVersion() basic tests=====
TEST: basic apiVersion() call
1.1
PK |[uf$ ! XML_Util/tests/testBug_18343.phptnu W+A --TEST--
XML_Util tests for Bug #18343 Entities in file names decoded during packaging
--CREDITS--
Chuck Burgess
# created for v1.2.2a1 2014-06-03
--FILE--
"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",
)
);
echo "No matter what flags are given to createTagFromArray(), an attribute must *always* be at least ENTITIES_XML encoded..." . PHP_EOL . PHP_EOL;
$flags = array(
'no flag' => null,
'false' => false,
'ENTITIES_NONE' => XML_UTIL_ENTITIES_NONE,
'ENTITIES_XML' => XML_UTIL_ENTITIES_XML,
'ENTITIES_XML_REQUIRED' => XML_UTIL_ENTITIES_XML_REQUIRED,
'ENTITIES_HTML' => XML_UTIL_ENTITIES_HTML,
'REPLACE_ENTITIES' => XML_UTIL_REPLACE_ENTITIES,
);
foreach ($flags as $flagKey => $flagValue) {
echo "Testing with $flagKey:" . PHP_EOL;
echo XML_Util::createTagFromArray($array, $flagValue) . PHP_EOL . PHP_EOL;
}
?>
--EXPECT--
=====XML_Util tests for Bug #18343 "Entities in file names decoded during packaging"=====
TEST: test case provided in bug report
No matter what flags are given to createTagFromArray(), an attribute must *always* be at least ENTITIES_XML encoded...
Testing with no flag:
Testing with false:
Testing with ENTITIES_NONE:
Testing with ENTITIES_XML:
Testing with ENTITIES_XML_REQUIRED:
Testing with ENTITIES_HTML:
Testing with REPLACE_ENTITIES:
PK |[_/ / 0 XML_Util/tests/testBasic_attributesToString.phptnu W+A --TEST--
XML_Util::attributesToString() basic tests
--CREDITS--
Chuck Burgess
# created for v1.2.0a1 2008-05-04
--FILE--
"bar", "boo" => "baz");
$sort1 = array(
'multiline' => true,
'indent' => '----',
'linebreak' => "^",
'entities' => XML_UTIL_ENTITIES_XML,
'sort' => true
);
$sort2 = array(
'multiline' => true,
'indent' => '----',
'linebreak' => "^",
'entities' => XML_UTIL_ENTITIES_XML,
);
echo "TEST: basic usage" . PHP_EOL;
echo XML_Util::attributesToString($att) . PHP_EOL . PHP_EOL;
echo "TEST: explicit \$sort = true" . PHP_EOL;
echo XML_Util::attributesToString($att, true) . PHP_EOL . PHP_EOL;
echo "TEST: explicit \$sort = false" . PHP_EOL;
echo XML_Util::attributesToString($att, false) . PHP_EOL . PHP_EOL;
echo "TEST: explicit \$multiline = false" . PHP_EOL;
echo XML_Util::attributesToString($att, true, false) . PHP_EOL . PHP_EOL;
echo "TEST: explicit \$multiline = true" . PHP_EOL;
echo XML_Util::attributesToString($att, true, true) . PHP_EOL . PHP_EOL;
echo "TEST: explicit \$indent = ' ' (8 spaces)" . PHP_EOL;
echo XML_Util::attributesToString($att, true, true, ' ') . PHP_EOL . PHP_EOL;
echo "TEST: explicit \$linebreak = '^' (some dummy char)" . PHP_EOL;
echo XML_Util::attributesToString($att, true, true, '^') . PHP_EOL . PHP_EOL;
echo "TEST: passing \$sort array of options that includes 'sort'" . PHP_EOL;
echo XML_Util::attributesToString($att, $sort1) . PHP_EOL . PHP_EOL;
echo "TEST: passing \$sort array of options that doesn't include 'sort'" . PHP_EOL;
echo XML_Util::attributesToString($att, $sort2) . PHP_EOL . PHP_EOL;
echo "TEST: do not replace entities" . PHP_EOL;
$arr = array("foo" => "b@&r", "boo" => "b> "b@&r", "boo" => "b> "b@&r", "boo" => "b> "b@&r", "boo" => "b>
--EXPECT--
=====XML_Util::attributesToString() basic tests=====
TEST: basic usage
boo="baz" foo="bar"
TEST: explicit $sort = true
boo="baz" foo="bar"
TEST: explicit $sort = false
foo="bar" boo="baz"
TEST: explicit $multiline = false
boo="baz" foo="bar"
TEST: explicit $multiline = true
boo="baz"
foo="bar"
TEST: explicit $indent = ' ' (8 spaces)
boo="baz"
foo="bar"
TEST: explicit $linebreak = '^' (some dummy char)
boo="baz"
^foo="bar"
TEST: passing $sort array of options that includes 'sort'
boo="baz"
----foo="bar"
TEST: passing $sort array of options that doesn't include 'sort'
boo="baz"
----foo="bar"
TEST: do not replace entities
boo="b>