ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilBuddySystemBaseTest.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9{
14 protected function setGlobalVariable($name, $value)
15 {
16 global $DIC;
17
18 $GLOBALS[$name] = $value;
19
20 unset($DIC[$name]);
21 $DIC[$name] = function ($c) use ($name) {
22 return $GLOBALS[$name];
23 };
24 }
25
29 protected function assertException($exception_class)
30 {
31 if (version_compare(PHPUnit_Runner_Version::id(), '5.0', '>=')) {
32 $this->setExpectedException($exception_class);
33 }
34 }
35}
An exception for terminatinating execution or to throw for unit testing.
assertException($exception_class)
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if($format !==null) $name
Definition: metadata.php:146
global $DIC
Definition: saml.php:7