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'])
 
   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);
 
An exception for terminatinating execution or to throw for unit testing.
Customizing of pimple-DIC for ILIAS.
Class ilTermsOfServiceBaseTest.
setGlobalVariable(string $name, $value)
assertException(string $exceptionClass)
getCriterionConfig($value=null)
Class ilTermsOfServiceCriterionConfig.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.