Class ilMailBaseTest.
More...
◆ brutallyTrimHTML()
ilMailBaseTest::brutallyTrimHTML |
( |
string |
$html | ) |
|
|
protected |
Definition at line 32 of file ilMailBaseTest.php.
Referenced by ilMailErrorFormatterTest\testErrorFormatter().
34 $html = str_replace([
"\n",
"\r",
"\t"],
"", $html);
35 $html = preg_replace(
'# {2,}#',
" ", $html);
36 $html = preg_replace(
'/<!--(.|\s)*?-->/',
'', $html);
37 $html = preg_replace(
"/>(\s+)</",
"><", $html);
38 $html = str_replace([
" >",
" <"], [
">",
"<"], $html);
◆ setGlobalVariable()
ilMailBaseTest::setGlobalVariable |
( |
string |
$name, |
|
|
|
$value |
|
) |
| |
|
protected |
Definition at line 67 of file ilMailBaseTest.php.
References $c, $DIC, $GLOBALS, and $name.
Referenced by ilMailErrorFormatterTest\setUp(), ilMailOptionsTest\setUp(), ilMailTest\testExternalMailDeliveryToLocalRecipientsWorksAsExpected(), ilMailTest\testGetIliasMailerName(), ilMailMimeTest\testMimMailDelegatesEmailDeliveryToDefaultTransport(), ilMailMimeTest\testMimMailDelegatesEmailDeliveryToThePassedTransporter(), ilMailMimeTest\testTransportFactoryWillReturnNullTransportIfExternalEmailDeliveryIsDisabled(), ilMailMimeTest\testTransportFactoryWillReturnSendmailTransportIfSmtpTransportIsDisabled(), and ilMailMimeTest\testTransportFactoryWillReturnSmtpTransportIfEnabled().
Customizing of pimple-DIC for ILIAS.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
◆ setUp()
ilMailBaseTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 43 of file ilMailBaseTest.php.
References $DIC.
45 if (!defined(
'ANONYMOUS_USER_ID')) {
46 define(
'ANONYMOUS_USER_ID', 13);
51 $this->dic = is_object($DIC) ? clone
$DIC :
$DIC;
Customizing of pimple-DIC for ILIAS.
◆ tearDown()
ilMailBaseTest::tearDown |
( |
| ) |
|
|
protected |
◆ $dic
The documentation for this class was generated from the following file: