Definition at line 22 of file ilServicesXmlTest.php.
◆ brutallyTrim()
ilServicesXmlTest::brutallyTrim |
( |
string |
$string | ) |
|
|
protected |
Definition at line 61 of file ilServicesXmlTest.php.
Referenced by testElements(), testHeader(), and testStartEndTag().
63 $string = str_replace([
"\n",
"\r",
"\t"],
"", $string);
64 $string = preg_replace(
'# {2,}#',
" ", $string);
65 $string = preg_replace(
"/>(\s+)</",
"><", $string);
66 $string = str_replace(
" >",
">", $string);
67 $string = str_replace(
" <",
"<", $string);
◆ testElements()
ilServicesXmlTest::testElements |
( |
| ) |
|
Definition at line 46 of file ilServicesXmlTest.php.
References brutallyTrim().
49 $writer->xmlStartTag(
'lorem');
50 $writer->xmlElement(
'ipsum', [
'attr1' => 1],
'data1');
51 $writer->xmlElement(
'dolor', [
'attr2' => 2,
'attr3' => 3],
'data2');
52 $writer->xmlEndTag(
'lorem');
55 "<lorem><ipsum attr1=\"1\"> data1</ipsum><dolor attr2=\"2\" attr3=\"3\"> data2</dolor></lorem>" This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
brutallyTrim(string $string)
◆ testHeader()
ilServicesXmlTest::testHeader |
( |
| ) |
|
Definition at line 24 of file ilServicesXmlTest.php.
References brutallyTrim().
30 $this->
brutallyTrim(
"<?xml version=\"1.0\" encoding=\"utf-8\"?><!--Generated by ILIAS XmlWriter-->"),
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
brutallyTrim(string $string)
◆ testStartEndTag()
ilServicesXmlTest::testStartEndTag |
( |
| ) |
|
Definition at line 35 of file ilServicesXmlTest.php.
References brutallyTrim().
38 $writer->xmlStartTag(
'lorem');
39 $writer->xmlEndTag(
'lorem');
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
brutallyTrim(string $string)
The documentation for this class was generated from the following file: