ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMailBaseTest Class Reference

Class ilMailBaseTest. More...

+ Inheritance diagram for ilMailBaseTest:
+ Collaboration diagram for ilMailBaseTest:

Protected Member Functions

 setUp ()
 
 setGlobalVariable ($name, $value)
 
 assertException ($exception_class)
 

Detailed Description

Class ilMailBaseTest.

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

Definition at line 8 of file ilMailBaseTest.php.

Member Function Documentation

◆ assertException()

ilMailBaseTest::assertException (   $exception_class)
protected
Parameters
string$exception_class

Definition at line 39 of file ilMailBaseTest.php.

Referenced by ilMailTemplateRepositoryTest\testExceptionIsRaisedIfNoTemplateCanBeFoundById().

40  {
41  if (version_compare(PHPUnit_Runner_Version::id(), '5.0', '>=')) {
42  $this->setExpectedException($exception_class);
43  }
44  }
+ Here is the caller graph for this function:

◆ setGlobalVariable()

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

Definition at line 24 of file ilMailBaseTest.php.

References $c, $DIC, $GLOBALS, and $name.

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

25  {
26  global $DIC;
27 
28  $GLOBALS[$name] = $value;
29 
30  unset($DIC[$name]);
31  $DIC[$name] = function ($c) use ($name) {
32  return $GLOBALS[$name];
33  };
34  }
global $DIC
Definition: saml.php:7
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
+ Here is the caller graph for this function:

◆ setUp()

ilMailBaseTest::setUp ( )
protected

Definition at line 13 of file ilMailBaseTest.php.

References $GLOBALS.

14  {
15  $GLOBALS['DIC'] = new \ILIAS\DI\Container();
16 
17  parent::setUp();
18  }
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.

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