25 $initRefl = new \ReflectionClass(\ilInitialisation::class);
26 $method = $initRefl->getMethod(
'initUIFramework');
27 $method->setAccessible(
true);
28 $method->invoke($initRefl, $this->dic);
31 $this->
setGlobalVariable(
'ilCtrl', $this->getMockBuilder(\ilCtrl::class)->disableOriginalConstructor()->getMock());
42 ->getMockBuilder(\ilLanguage::class)
43 ->disableOriginalConstructor()
44 ->setMethods([
'txt',
'getInstalledLanguages',
'loadLanguageModule'])
61 $DIC[
$name] =
function (
$c) use ($name) {
71 if (version_compare(\PHPUnit_Runner_Version::id(),
'5.0',
'>=')) {
72 $this->setExpectedException($exceptionClass);
82 if (null === $value) {
83 return new \ilTermsOfServiceCriterionConfig();
86 return new \ilTermsOfServiceCriterionConfig($value);
setGlobalVariable(string $name, $value)
assertException(string $exceptionClass)
Class ilTermsOfServiceCriterionConfig.
Customizing of pimple-DIC for ILIAS.
getCriterionConfig($value=null)
Class ilTermsOfServiceBaseTest.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.