ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMailBaseTest.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
13  protected function setUp()
14  {
15  $GLOBALS['DIC'] = new \ILIAS\DI\Container();
16 
17  parent::setUp();
18  }
19 
24  protected function setGlobalVariable($name, $value)
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  }
35 
39  protected function assertException($exception_class)
40  {
41  if (version_compare(PHPUnit_Runner_Version::id(), '5.0', '>=')) {
42  $this->setExpectedException($exception_class);
43  }
44  }
45 }
global $DIC
Definition: saml.php:7
assertException($exception_class)
Class ilMailBaseTest.
setGlobalVariable($name, $value)
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.