19 declare(strict_types=1);
31 $html = str_replace([
"\n",
"\r",
"\t"],
'', $html);
32 $html = preg_replace(
'# {2,}#',
' ', $html);
33 $html = preg_replace(
'/<!--(.|\s)*?-->/',
'', $html);
34 $html = preg_replace(
"/>(\s+)</",
'><', $html);
35 $html = str_replace([
' >',
' <'], [
'>',
'<'], $html);
40 protected function setUp(): void
42 if (!defined(
'ANONYMOUS_USER_ID')) {
43 define(
'ANONYMOUS_USER_ID', 13);
48 $this->dic = is_object($DIC) ? clone
$DIC :
$DIC;
51 $DIC[
'legalDocuments'] = fn() => $this->getMockBuilder(Conductor::class)->disableOriginalConstructor()->getMock();
brutallyTrimHTML(string $html)
Customizing of pimple-DIC for ILIAS.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setGlobalVariable(string $name, $value)