ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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
global $DIC
Definition: shib_login.php:26
$GLOBALS["DIC"]
Definition: wac.php:54

References $c, $DIC, and $GLOBALS.

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

+ Here is the caller graph for this function:

◆ setUp()

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

Reimplemented in ILIAS\VirusScanner\tests\VirusScannerFactoryTest.

Definition at line 28 of file VirusScannerBaseTestCase.php.

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

References $GLOBALS.


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