ILIAS  release_8 Revision v8.23
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 $c, $DIC, $GLOBALS, and $name.

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  }
$c
Definition: cli.php:38
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:31
global $DIC
Definition: feed.php:28
if($format !==null) $name
Definition: metadata.php:247
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64

◆ 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:31
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64

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