ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilCASSettingsTest Class Reference
+ Inheritance diagram for ilCASSettingsTest:
+ Collaboration diagram for ilCASSettingsTest:

Protected Member Functions

 setUp ()
 
 setGlobalVariable (string $name, $value)
 

Protected Attributes

Container $dic
 

Detailed Description

Definition at line 25 of file ilCASSettingsTest.php.

Member Function Documentation

◆ setGlobalVariable()

ilCASSettingsTest::setGlobalVariable ( string  $name,
  $value 
)
protected
Parameters
string$name
mixed$value

Definition at line 44 of file ilCASSettingsTest.php.

References $c, $DIC, $GLOBALS, and ilCASSettings\getInstance().

Referenced by setUp().

44  : void
45  {
46  global $DIC;
47 
48  $GLOBALS[$name] = $value;
49 
50  unset($DIC[$name]);
51  $DIC[$name] = static function ($c) use ($name) {
52  return $GLOBALS[$name];
53  };
54  }
$c
Definition: deliver.php:25
$GLOBALS["DIC"]
Definition: wac.php:53
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUp()

ilCASSettingsTest::setUp ( )
protected

Definition at line 29 of file ilCASSettingsTest.php.

References $dic, $GLOBALS, and setGlobalVariable().

29  : void
30  {
31  $this->dic = new Container();
32  $GLOBALS['DIC'] = $this->dic;
33  $this->setGlobalVariable(
34  'ilSetting',
35  $this->getMockBuilder(ilSetting::class)->disableOriginalConstructor()->getMock()
36  );
37  parent::setUp();
38  }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
setGlobalVariable(string $name, $value)
$GLOBALS["DIC"]
Definition: wac.php:53
+ Here is the call graph for this function:

Field Documentation

◆ $dic

Container ilCASSettingsTest::$dic
protected

Definition at line 27 of file ilCASSettingsTest.php.

Referenced by setUp().


The documentation for this class was generated from the following file: