ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
assErrorTextGUITest.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
11
class
assErrorTextGUITest
extends
PHPUnit_Framework_TestCase
12
{
13
protected
$backupGlobals
= FALSE;
14
15
protected
function
setUp
()
16
{
17
if
(defined(
'ILIAS_PHPUNIT_CONTEXT'
))
18
{
19
include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php"
);
20
ilUnitUtil::performInitialisation();
21
}
22
else
23
{
24
chdir( dirname( __FILE__ ) );
25
chdir(
'../../../'
);
26
}
27
28
require_once
'./Services/UICore/classes/class.ilCtrl.php'
;
29
$ilCtrl_mock = $this->getMock(
'ilCtrl'
);
30
$ilCtrl_mock->expects( $this->any() )->method(
'saveParameter'
);
31
$ilCtrl_mock->expects( $this->any() )->method(
'saveParameterByClass'
);
32
global
$ilCtrl
;
33
$ilCtrl = $ilCtrl_mock;
34
35
require_once
'./Services/Language/classes/class.ilLanguage.php'
;
36
$lng_mock = $this->getMock(
'ilLanguage'
, array(
'txt'
), array(),
''
,
false
);
37
//$lng_mock->expects( $this->once() )->method( 'txt' )->will( $this->returnValue('Test') );
38
global
$lng
;
39
$lng = $lng_mock;
40
41
$ilias_mock =
new
stdClass();
42
$ilias_mock->account =
new
stdClass();
43
$ilias_mock->account->id = 6;
44
$ilias_mock->account->fullname =
'Esther Tester'
;
45
global $ilias;
46
$ilias = $ilias_mock;
47
}
48
49
public
function
test_instantiateObject_shouldReturnInstance
()
50
{
51
//$this->markTestIncomplete('Needs mock.');
52
// Arrange
53
require_once
'./Modules/TestQuestionPool/classes/class.assErrorTextGUI.php'
;
54
55
// Act
56
$instance =
new
assErrorTextGUI
();
57
58
$this->assertInstanceOf(
'assErrorTextGUI'
, $instance);
59
}
60
}
PHPUnit_Framework_TestCase
assErrorTextGUITest\test_instantiateObject_shouldReturnInstance
test_instantiateObject_shouldReturnInstance()
Definition:
assErrorTextGUITest.php:49
$ilCtrl
global $ilCtrl
Definition:
ilias.php:18
assErrorTextGUITest\$backupGlobals
$backupGlobals
Definition:
assErrorTextGUITest.php:13
assErrorTextGUI
The assErrorTextGUI class encapsulates the GUI representation for error text questions.
Definition:
class.assErrorTextGUI.php:24
$lng
global $lng
Definition:
privfeed.php:40
assErrorTextGUITest\setUp
setUp()
Definition:
assErrorTextGUITest.php:15
assErrorTextGUITest
Unit tests.
Definition:
assErrorTextGUITest.php:11
Modules
TestQuestionPool
test
assErrorTextGUITest.php
Generated on Mon Apr 7 2025 19:00:45 for ILIAS by
1.8.13 (using
Doxyfile
)