ILIAS
trunk Revision v11.0_alpha-1838-g59fc79e306b
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
TestCase.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Tests\Refinery
;
22
23
use
ilGlobalTemplateInterface
;
24
use
ILIAS\Language\Language
;
25
use
PHPUnit\Framework\TestCase
as
PHPUnitTestCase
;
26
27
class
ilLanguageMock
implements
Language
28
{
30
public
array
$requested
= [];
31
public
string
$lang_module
=
'common'
;
32
public
string
$lang_key
=
'en'
;
33
34
public
function
__construct
()
35
{
36
}
37
38
public
function
txt
(
string
$a_topic,
string
$a_default_lang_fallback_mod =
''
): string
39
{
40
$this->requested[] = $a_topic;
41
return
$a_topic;
42
}
43
44
public
function
toJS
($a_lang_key, ?
ilGlobalTemplateInterface
$a_tpl =
null
): void
45
{
46
}
47
48
public
function
loadLanguageModule
(
string
$a_module): void
49
{
50
}
51
52
public
function
getLangKey
(): string
53
{
54
return
$this->lang_key
;
55
}
56
}
57
58
abstract
class
TestCase
extends
PHPUnitTestCase
59
{
60
public
function
getLanguage
():
Language
61
{
62
return
new
ilLanguageMock
();
63
}
64
}
Language
ILIAS\Tests\Refinery\ilLanguageMock\toJS
toJS($a_lang_key, ?ilGlobalTemplateInterface $a_tpl=null)
Definition:
TestCase.php:44
ilGlobalTemplateInterface
ILIAS\Tests\Refinery\ilLanguageMock\txt
txt(string $a_topic, string $a_default_lang_fallback_mod='')
Definition:
TestCase.php:38
ILIAS\Tests\Refinery\ilLanguageMock\loadLanguageModule
loadLanguageModule(string $a_module)
Definition:
TestCase.php:48
ILIAS\Tests\Refinery\ilLanguageMock
Definition:
TestCase.php:27
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
ILIAS\Tests\Refinery\TestCase
Definition:
TestCase.php:58
ILIAS\Tests\Refinery\ilLanguageMock\__construct
__construct()
Definition:
TestCase.php:34
ILIAS\Tests\Refinery\ilLanguageMock\$lang_key
string $lang_key
Definition:
TestCase.php:32
ILIAS\Tests\Refinery
Definition:
ConstantTransformationTest.php:21
ILIAS\Tests\Refinery\ilLanguageMock\getLangKey
getLangKey()
Definition:
TestCase.php:52
ILIAS\Tests\Refinery\ilLanguageMock\$lang_module
string $lang_module
Definition:
TestCase.php:31
ILIAS\Tests\Refinery\TestCase\getLanguage
getLanguage()
Definition:
TestCase.php:60
ILIAS\Tests\Refinery\ilLanguageMock\$requested
array $requested
Definition:
TestCase.php:30
TestCase
ILIAS\Language\Language
Definition:
Language.php:23
components
ILIAS
Refinery
tests
TestCase.php
Generated on Wed Apr 16 2025 23:03:21 for ILIAS by
1.8.13 (using
Doxyfile
)