1<?
php declare(strict_types=1);
5use PHPUnit\Framework\MockObject\MockObject;
6use PHPUnit\Framework\TestCase;
21 protected function setUp() : void
29 $this->getMockBuilder(ilCtrl::class)->disableOriginalConstructor()->getMock()
42 ->getMockBuilder(ilLanguage::class)
43 ->disableOriginalConstructor()
44 ->setMethods([
'txt',
'getInstalledLanguages',
'loadLanguageModule'])
56 ->getMockBuilder(\
ILIAS\
UI\Factory::class)
59 $ui->expects($this->any())->method(
'legacy')->will($this->returnCallback(
function ($content) {
61 ->getMockBuilder(\
ILIAS\
UI\Component\Legacy\Legacy::class)
63 $legacyMock->expects($this->any())->method(
'getContent')->willReturn($content);
93 if (
null === $value) {
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
Customizing of pimple-DIC for ILIAS.
Class ilTermsOfServiceBaseTest.
setGlobalVariable(string $name, $value)
getCriterionConfig($value=null)
Class ilTermsOfServiceCriterionConfig.
Class ChatMainBarProvider \MainMenu\Provider.