ILIAS  release_7 Revision v7.30-3-g800a261c036
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 
12 
13 require_once('./libs/composer/vendor/autoload.php');
14 
15 
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';
32  {
33  }
34 }
35 
36 abstract class TestCase extends PHPUnitTestCase
37 {
38  public function getLanguage()
39  {
40  return new ilLanguageMock();
41  }
42 }
txt($a_topic, $a_default_lang_fallback_mod="")
Definition: TestCase.php:22
language handling
toJS($a_lang_key, ilGlobalTemplateInterface $a_tpl=null)
Definition: TestCase.php:27