ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
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
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\Tests\Refinery\TestCase
Definition:
TestCase.php:37
ILIAS\Tests\Refinery\TestCase\getLanguage
getLanguage()
Definition:
TestCase.php:38
ILIAS\Tests\Refinery\ilLanguageMock
Definition:
TestCase.php:17
ILIAS\Tests\Refinery\ilLanguageMock\loadLanguageModule
loadLanguageModule($lang_module)
Definition:
TestCase.php:31
ILIAS\Tests\Refinery\ilLanguageMock\$requested
$requested
Definition:
TestCase.php:18
ILIAS\Tests\Refinery\ilLanguageMock\txt
txt($a_topic, $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
Definition:
TestCase.php:22
ILIAS\Tests\Refinery\ilLanguageMock\__construct
__construct()
Definition:
TestCase.php:19
ILIAS\Tests\Refinery\ilLanguageMock\toJS
toJS($a_lang_key, ilGlobalTemplateInterface $a_tpl=null)
Definition:
TestCase.php:27
ILIAS\Tests\Refinery\ilLanguageMock\$lang_module
$lang_module
Definition:
TestCase.php:30
PHPUnitTestCase
ilLanguage
language handling
Definition:
class.ilLanguage.php:27
ilGlobalTemplateInterface
Created by PhpStorm.
Definition:
interface.ilGlobalTemplateInterface.php:17
ILIAS\Tests\Refinery
Definition:
ConstraintViolationExceptionTest.php:4
tests
Refinery
TestCase.php
Generated on Sat Oct 4 2025 21:01:16 for ILIAS by
1.9.4 (using
Doxyfile
)