ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
4require_once 'libs/composer/vendor/autoload.php';
5
10{
14 protected function setUp()
15 {
16 $GLOBALS['DIC'] = new \ILIAS\DI\Container();
17
18 parent::setUp();
19 }
20
25 protected function setGlobalVariable($name, $value)
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 }
36}
An exception for terminatinating execution or to throw for unit testing.
setGlobalVariable($name, $value)
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if($format !==null) $name
Definition: metadata.php:146
global $DIC
Definition: saml.php:7