ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
6use PHPUnit\Framework\TestCase;
7
12abstract 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}
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
An exception for terminatinating execution or to throw for unit testing.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:18
Class ilMailBaseTest.
setGlobalVariable(string $name, $value)
if($format !==null) $name
Definition: metadata.php:230
$DIC
Definition: xapitoken.php:46