ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
ilLanguageBaseTest.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
ilLanguageBaseTest
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:
cli.php:38
ilLanguageBaseTest\setGlobalVariable
setGlobalVariable(string $name, $value)
Definition:
ilLanguageBaseTest.php:38
ilLanguageBaseTest
Class ilLanguageBaseTest.
Definition:
ilLanguageBaseTest.php:29
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:31
$DIC
global $DIC
Definition:
feed.php:28
Container
$name
if($format !==null) $name
Definition:
metadata.php:247
$GLOBALS
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition:
PEAR.php:64
ilLanguageBaseTest\setUp
setUp()
Definition:
ilLanguageBaseTest.php:31
TestCase
Services
Language
test
ilLanguageBaseTest.php
Generated on Sun Aug 31 2025 22:02:22 for ILIAS by
1.8.13 (using
Doxyfile
)