ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
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
TestCase.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8
namespace
ILIAS\Tests\Refinery
;
9
10
use
ilGlobalTemplateInterface
;
11
use
PHPUnit\Framework\TestCase
as
PHPUnitTestCase
;
12
13
require_once(
'./libs/composer/vendor/autoload.php'
);
14
15
16
class
ilLanguageMock
extends
\ilLanguage
17
{
18
public
$requested
= array();
19
public
function
__construct
()
20
{
21
}
22
public
function
txt
($a_topic, $a_default_lang_fallback_mod =
""
)
23
{
24
$this->requested[] = $a_topic;
25
return
$a_topic;
26
}
27
public
function
toJS
($a_lang_key,
ilGlobalTemplateInterface
$a_tpl = null)
28
{
29
}
30
public
$lang_module
=
'common'
;
31
public
function
loadLanguageModule
(
$lang_module
)
32
{
33
}
34
}
35
36
abstract
class
TestCase
extends
PHPUnitTestCase
37
{
38
public
function
getLanguage
()
39
{
40
return
new
ilLanguageMock
();
41
}
42
}
ILIAS\Tests\Refinery\ilLanguageMock\loadLanguageModule
loadLanguageModule($lang_module)
Definition:
TestCase.php:31
ilGlobalTemplateInterface
ILIAS\Tests\Refinery\ilLanguageMock\$lang_module
$lang_module
Definition:
TestCase.php:30
ILIAS\Tests\Refinery\ilLanguageMock
Definition:
TestCase.php:16
ILIAS\Tests\Refinery\ilLanguageMock\txt
txt($a_topic, $a_default_lang_fallback_mod="")
Definition:
TestCase.php:22
ILIAS\Tests\Refinery\ilLanguageMock\__construct
__construct()
Definition:
TestCase.php:19
ILIAS\Tests\Refinery
Definition:
ConstraintViolationExceptionTest.php:4
ILIAS\Tests\Refinery\TestCase\getLanguage
getLanguage()
Definition:
TestCase.php:38
ilLanguage
language handling
Definition:
class.ilLanguage.php:26
ILIAS\Tests\Refinery\ilLanguageMock\$requested
$requested
Definition:
TestCase.php:18
TestCase
ILIAS\Tests\Refinery\ilLanguageMock\toJS
toJS($a_lang_key, ilGlobalTemplateInterface $a_tpl=null)
Definition:
TestCase.php:27
tests
Refinery
TestCase.php
Generated on Thu Apr 10 2025 21:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)