ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMailBaseTest.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
3 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
7 
12 abstract class ilMailBaseTest extends TestCase
13 {
17  protected function setUp() : void
18  {
19  $GLOBALS['DIC'] = new Container();
20 
21  parent::setUp();
22  }
23 
28  protected function setGlobalVariable(string $name, $value) : void
29  {
30  global $DIC;
31 
32  $GLOBALS[$name] = $value;
33 
34  unset($DIC[$name]);
35  $DIC[$name] = function ($c) use ($name) {
36  return $GLOBALS[$name];
37  };
38  }
39 }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:17
Class ilMailBaseTest.
if($format !==null) $name
Definition: metadata.php:230
setGlobalVariable(string $name, $value)
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
$DIC
Definition: xapitoken.php:46