ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
ilLanguageBaseTestCase.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
PHPUnit\Framework\TestCase
;
22
use
ILIAS\DI\Container
;
23
28
abstract
class
ilLanguageBaseTestCase
extends
TestCase
29
{
30
protected
function
setUp
(): void
31
{
32
$GLOBALS
[
'DIC'
] =
new
Container
();
33
34
parent::setUp();
35
}
36
37
protected
function
setGlobalVariable
(
string
$name, $value): void
38
{
39
global
$DIC
;
40
41
$GLOBALS
[$name] = $value;
42
43
unset($DIC[$name]);
44
$DIC[$name] =
static
function
(
Container
$c
) use ($name) {
45
return
$GLOBALS
[$name];
46
};
47
}
48
}
$c
$c
Definition:
deliver.php:25
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:35
Container
$GLOBALS
$GLOBALS["DIC"]
Definition:
wac.php:53
ilLanguageBaseTestCase
Class ilLanguageBaseTest.
Definition:
ilLanguageBaseTestCase.php:28
$DIC
global $DIC
Definition:
shib_login.php:26
ilLanguageBaseTestCase\setGlobalVariable
setGlobalVariable(string $name, $value)
Definition:
ilLanguageBaseTestCase.php:37
TestCase
ilLanguageBaseTestCase\setUp
setUp()
Definition:
ilLanguageBaseTestCase.php:30
TestCase
components
ILIAS
Language
tests
ilLanguageBaseTestCase.php
Generated on Sun Aug 31 2025 23:03:11 for ILIAS by
1.8.13 (using
Doxyfile
)