ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ilMailBaseTest.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
2
3
/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
use
ILIAS\DI\Container
;
6
use
PHPUnit\Framework\TestCase
;
7
12
abstract
class
ilMailBaseTest
extends
TestCase
13
{
17
protected
function
setUp
() : void
18
{
19
$GLOBALS
[
'DIC'
] =
new
Container
();
20
21
parent::setUp();
22
}
23
28
protected
function
setGlobalVariable
(
string
$name
, $value) : void
29
{
30
global
$DIC
;
31
32
$GLOBALS
[
$name
] = $value;
33
34
unset($DIC[$name]);
35
$DIC[
$name
] =
function
(
$c
) use ($name) {
36
return
$GLOBALS
[
$name
];
37
};
38
}
39
}
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:17
Container
ilMailBaseTest
Class ilMailBaseTest.
Definition:
ilMailBaseTest.php:12
$name
if($format !==null) $name
Definition:
metadata.php:230
ilMailBaseTest\setGlobalVariable
setGlobalVariable(string $name, $value)
Definition:
ilMailBaseTest.php:28
$GLOBALS
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition:
PEAR.php:64
ilMailBaseTest\setUp
setUp()
Definition:
ilMailBaseTest.php:17
$DIC
$DIC
Definition:
xapitoken.php:46
Vendor\Package\$c
$c
Definition:
example_cleaned.php:31
TestCase
Services
Mail
test
ilMailBaseTest.php
Generated on Sun Apr 13 2025 20:01:22 for ILIAS by
1.8.13 (using
Doxyfile
)