ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\VirusScanner\tests\VirusScannerBaseTestCase Class Reference
+ Inheritance diagram for ILIAS\VirusScanner\tests\VirusScannerBaseTestCase:
+ Collaboration diagram for ILIAS\VirusScanner\tests\VirusScannerBaseTestCase:

Protected Member Functions

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

Detailed Description

Definition at line 26 of file VirusScannerBaseTestCase.php.

Member Function Documentation

◆ setGlobalVariable()

ILIAS\VirusScanner\tests\VirusScannerBaseTestCase::setGlobalVariable ( string  $name,
  $value 
)
protected

Definition at line 35 of file VirusScannerBaseTestCase.php.

References $c, $DIC, and $GLOBALS.

Referenced by ILIAS\VirusScanner\tests\VirusScannerFactoryTest\setUp().

35  : void
36  {
37  global $DIC;
38 
39  $GLOBALS[$name] = $value;
40 
41  unset($DIC[$name]);
42  $DIC[$name] = static function (Container $c) use ($name) {
43  return $GLOBALS[$name];
44  };
45  }
$c
Definition: deliver.php:25
$GLOBALS["DIC"]
Definition: wac.php:54
global $DIC
Definition: shib_login.php:26
+ Here is the caller graph for this function:

◆ setUp()

ILIAS\VirusScanner\tests\VirusScannerBaseTestCase::setUp ( )
protected

Definition at line 28 of file VirusScannerBaseTestCase.php.

References $GLOBALS.

28  : void
29  {
30  $GLOBALS['DIC'] = new Container();
31 
32  parent::setUp();
33  }
$GLOBALS["DIC"]
Definition: wac.php:54

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