ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
ilMailBaseTest.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
require_once
'libs/composer/vendor/autoload.php'
;
5
9
abstract
class
ilMailBaseTest
extends
\PHPUnit_Framework_TestCase
10
{
14
protected
function
setUp
()
15
{
16
$GLOBALS
[
'DIC'
] = new \ILIAS\DI\Container();
17
18
parent::setUp();
19
}
20
25
protected
function
setGlobalVariable
(
$name
, $value)
26
{
27
global
$DIC
;
28
29
$GLOBALS
[
$name
] = $value;
30
31
unset(
$DIC
[
$name
]);
32
$DIC
[
$name
] =
function
($c) use (
$name
) {
33
return
$GLOBALS
[
$name
];
34
};
35
}
36
}
php
An exception for terminatinating execution or to throw for unit testing.
PHPUnit_Framework_TestCase
ilMailBaseTest
Definition:
ilMailBaseTest.php:10
ilMailBaseTest\setUp
setUp()
Definition:
ilMailBaseTest.php:14
ilMailBaseTest\setGlobalVariable
setGlobalVariable($name, $value)
Definition:
ilMailBaseTest.php:25
$GLOBALS
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Definition:
generate-standalone.php:18
$name
if($format !==null) $name
Definition:
metadata.php:146
$DIC
global $DIC
Definition:
saml.php:7
Services
Mail
test
ilMailBaseTest.php
Generated on Tue Sep 30 2025 19:01:16 for ILIAS by
1.9.4 (using
Doxyfile
)