19declare(strict_types=1);
21use PHPUnit\Framework\TestCase;
32 $this->
brutallyTrim(
"<?xml version=\"1.0\" encoding=\"utf-8\"?><!--Generated by ILIAS XmlWriter-->"),
40 $writer->xmlStartTag(
'lorem');
41 $writer->xmlEndTag(
'lorem');
51 $writer->xmlStartTag(
'lorem');
52 $writer->xmlElement(
'ipsum', [
'attr1' => 1],
'data1');
53 $writer->xmlElement(
'dolor', [
'attr2' => 2,
'attr3' => 3],
'data2');
54 $writer->xmlEndTag(
'lorem');
57 "<lorem><ipsum attr1=\"1\"> data1</ipsum><dolor attr2=\"2\" attr3=\"3\"> data2</dolor></lorem>"
65 $string = str_replace([
"\n",
"\r",
"\t"],
"", $string);
66 $string = preg_replace(
'# {2,}#',
" ", $string);
67 $string = preg_replace(
"/>(\s+)</",
"><", $string);
68 $string = str_replace(
" >",
">", $string);
69 $string = str_replace(
" <",
"<", $string);
Customizing of pimple-DIC for ILIAS.
brutallyTrim(string $string)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...