ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilMailBaseTest Class Reference
+ Inheritance diagram for ilMailBaseTest:
+ Collaboration diagram for ilMailBaseTest:

Protected Member Functions

 setUp ()
 
 setGlobalVariable ($name, $value)
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 9 of file ilMailBaseTest.php.

Member Function Documentation

◆ setGlobalVariable()

ilMailBaseTest::setGlobalVariable (   $name,
  $value 
)
protected
Parameters
string$name
mixed$value

Definition at line 25 of file ilMailBaseTest.php.

References $DIC, $GLOBALS, and $name.

Referenced by ilMailAddressTypesTest\setUp(), ilMailOptionsTest\testConstructor(), ilMailMimeTest\testMimMailDelegatesEmailDeliveryToDefaultTransport(), ilMailMimeTest\testMimMailDelegatesEmailDeliveryToThePassedTransporter(), ilMailMimeTest\testTransportFactoryWillReturnNullTransportIfExternalEmailDeliveryIsDisabled(), ilMailMimeTest\testTransportFactoryWillReturnSendmailTransportIfSmtpTransportIsDisabled(), and ilMailMimeTest\testTransportFactoryWillReturnSmtpTransportIfEnabled().

26  {
27  global $DIC;
28 
29  $GLOBALS[$name] = $value;
30 
31  unset($DIC[$name]);
32  $DIC[$name] = function ($c) use ($name) {
33  return $GLOBALS[$name];
34  };
35  }
global $DIC
Definition: saml.php:7
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if($format !==null) $name
Definition: metadata.php:146
+ Here is the caller graph for this function:

◆ setUp()

ilMailBaseTest::setUp ( )
protected

Definition at line 14 of file ilMailBaseTest.php.

References $GLOBALS.

15  {
16  $GLOBALS['DIC'] = new \ILIAS\DI\Container();
17 
18  parent::setUp();
19  }
$GLOBALS['loaded']
Global hash that tracks already loaded includes.

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