19 declare(strict_types=1);
35 $html = str_replace([
"\n",
"\r",
"\t"],
"", $html);
36 $html = preg_replace(
'# {2,}#',
" ", $html);
37 $html = preg_replace(
'/<!--(.|\s)*?-->/',
'', $html);
38 $html = preg_replace(
"/>(\s+)</",
"><", $html);
39 $html = str_replace([
" >",
" <"], [
">",
"<"], $html);
44 protected function setUp(): void
46 if (!defined(
'ANONYMOUS_USER_ID')) {
47 define(
'ANONYMOUS_USER_ID', 13);
52 $this->dic = is_object($DIC) ? clone
$DIC :
$DIC;
55 $DIC[
'legalDocuments'] = fn() => $this->getMockBuilder(Conductor::class)->disableOriginalConstructor()->getMock();
77 $DIC[$name] =
static function (
Container $c) use ($name) {
brutallyTrimHTML(string $html)
Customizing of pimple-DIC for ILIAS.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setGlobalVariable(string $name, $value)