ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
ilLanguageBaseTestCase.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
22
use
PHPUnit\Framework\TestCase
;
23
use
ILIAS\DI\Container
;
24
29
abstract
class
ilLanguageBaseTestCase
extends
TestCase
30
{
31
protected
function
setUp
(): void
32
{
33
$GLOBALS
[
'DIC'
] =
new
Container
();
34
35
parent::setUp();
36
}
37
38
protected
function
setGlobalVariable
(
string
$name, $value): void
39
{
40
global
$DIC
;
41
42
$GLOBALS
[$name] = $value;
43
44
unset($DIC[$name]);
45
$DIC[$name] =
static
function
(
Container
$c
) use ($name) {
46
return
$GLOBALS
[$name];
47
};
48
}
49
}
$c
$c
Definition:
deliver.php:9
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:35
Container
$GLOBALS
$GLOBALS["DIC"]
Definition:
wac.php:30
ilLanguageBaseTestCase
Class ilLanguageBaseTest.
Definition:
ilLanguageBaseTestCase.php:29
$DIC
global $DIC
Definition:
shib_login.php:25
ilLanguageBaseTestCase\setGlobalVariable
setGlobalVariable(string $name, $value)
Definition:
ilLanguageBaseTestCase.php:38
TestCase
ilLanguageBaseTestCase\setUp
setUp()
Definition:
ilLanguageBaseTestCase.php:31
components
ILIAS
Language
tests
ilLanguageBaseTestCase.php
Generated on Wed Sep 10 2025 15:15:49 for ILIAS by
1.8.13 (using
Doxyfile
)