ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
global $DIC
Definition: saml.php:7