ILIAS  release_7 Revision v7.30-3-g800a261c036
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
9
11use PHPUnit\Framework\TestCase as PHPUnitTestCase;
12
13require_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
36abstract class TestCase extends PHPUnitTestCase
37{
38 public function getLanguage()
39 {
40 return new ilLanguageMock();
41 }
42}
An exception for terminatinating execution or to throw for unit testing.
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
toJS($a_lang_key, ilGlobalTemplateInterface $a_tpl=null)
Definition: TestCase.php:27
language handling