ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilLanguageBaseTest Class Reference

Class ilLanguageBaseTest. More...

+ Inheritance diagram for ilLanguageBaseTest:
+ Collaboration diagram for ilLanguageBaseTest:

Protected Member Functions

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

Detailed Description

Member Function Documentation

◆ setGlobalVariable()

ilLanguageBaseTest::setGlobalVariable ( string  $name,
  $value 
)
protected

Definition at line 38 of file ilLanguageBaseTest.php.

References Vendor\Package\$c, $DIC, and $GLOBALS.

38  : void
39  {
40  global $DIC;
41 
42  $GLOBALS[$name] = $value;
43 
44  unset($DIC[$name]);
45  $DIC[$name] = static function (Container $c) use ($name) {
46  return $GLOBALS[$name];
47  };
48  }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
global $DIC
Definition: feed.php:28
$GLOBALS["DIC"]
Definition: wac.php:31

◆ setUp()

ilLanguageBaseTest::setUp ( )
protected

Definition at line 31 of file ilLanguageBaseTest.php.

References $GLOBALS.

31  : void
32  {
33  $GLOBALS['DIC'] = new Container();
34 
35  parent::setUp();
36  }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
$GLOBALS["DIC"]
Definition: wac.php:31

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