ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilLanguageBaseTestCase Class Reference

Class ilLanguageBaseTest. More...

+ Inheritance diagram for ilLanguageBaseTestCase:
+ Collaboration diagram for ilLanguageBaseTestCase:

Protected Member Functions

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

Detailed Description

Class ilLanguageBaseTest.

Author
Sílvia Mariné silvi.nosp@m.a.ma.nosp@m.rine@.nosp@m.kroe.nosp@m.pelin.nosp@m.-pro.nosp@m.jekte.nosp@m..de

Definition at line 29 of file ilLanguageBaseTestCase.php.

Member Function Documentation

◆ setGlobalVariable()

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

Definition at line 38 of file ilLanguageBaseTestCase.php.

References $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  }
$c
Definition: deliver.php:9
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
$GLOBALS["DIC"]
Definition: wac.php:30
global $DIC
Definition: shib_login.php:25

◆ setUp()

ilLanguageBaseTestCase::setUp ( )
protected

Definition at line 31 of file ilLanguageBaseTestCase.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:30

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