ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ 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
$c
$c
Definition:
inc.setup_header.php:183
PHPUnit_Framework_TestCase
ilBuddySystemBaseTest
Definition:
ilBuddySystemBaseTest.php:8
ilBuddySystemBaseTest\setGlobalVariable
setGlobalVariable($name, $value)
Definition:
ilBuddySystemBaseTest.php:14
$name
$name
Definition:
client_example.php:35
php
$GLOBALS
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
Definition:
module.tag.xmp.php:702
Services
Contact
BuddySystem
test
ilBuddySystemBaseTest.php
Generated on Thu Jan 30 2025 19:01:55 for ILIAS by
1.8.13 (using
Doxyfile
)