ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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
8
class
ilBuddySystemBaseTest
extends
PHPUnit_Framework_TestCase
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
}
$DIC
global $DIC
Definition:
saml.php:7
ilBuddySystemBaseTest\assertException
assertException($exception_class)
Definition:
ilBuddySystemBaseTest.php:29
$GLOBALS
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Definition:
generate-standalone.php:18
PHPUnit_Framework_TestCase
ilBuddySystemBaseTest
Definition:
ilBuddySystemBaseTest.php:8
$name
if($format !==null) $name
Definition:
metadata.php:146
ilBuddySystemBaseTest\setGlobalVariable
setGlobalVariable($name, $value)
Definition:
ilBuddySystemBaseTest.php:14
Services
Contact
BuddySystem
test
ilBuddySystemBaseTest.php
Generated on Sat Jan 18 2025 19:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)