ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
assQuestionGUITest.php
Go to the documentation of this file.
1
<?php
2
28
class
assQuestionGUITest
extends
assBaseTestCase
29
{
30
protected
$backupGlobals
=
false
;
31
32
private
assQuestionGUI
$object
;
33
34
protected
function
setUp
(): void
35
{
36
parent::setUp();
37
38
$this->
addGlobal_ilLog
();
39
40
$this->
object
=
new
class
() extends
assQuestionGUI
{
41
public
function
getSpecificFeedbackOutput(array $userSolution):
string
42
{
43
return
''
;
44
}
45
46
public
function
getSolutionOutput(
47
int
$active_id,
48
?
int
$pass =
null
,
49
bool
$graphical_output =
false
,
50
bool
$result_output =
false
,
51
bool
$show_question_only =
true
,
52
bool
$show_feedback =
false
,
53
bool
$show_correct_solution =
false
,
54
bool
$show_manual_scoring =
false
,
55
bool
$show_question_text =
true
,
56
bool
$show_inline_feedback =
true
57
):
string
{
58
return
''
;
59
}
60
61
public
function
editQuestion(
62
bool
$checkonly =
false
,
63
?
bool
$is_save_cmd =
null
64
):
bool
{
65
return
true
;
66
}
67
68
public
function
getPreview(
69
bool
$show_question_only =
false
,
70
bool
$show_inline_feedback =
false
71
):
string
{
72
return
''
;
73
}
74
75
public
function
getTestOutput(
76
int
$active_id,
77
int
$pass,
78
bool
$is_question_postponed =
false
,
79
array|
bool
$user_post_solutions =
false
,
80
bool
$show_specific_inline_feedback =
false
81
):
string
{
82
return
''
;
83
}
84
};
85
}
86
87
public
function
testConstruct
(): void
88
{
89
$this->assertInstanceOf(assQuestionGUI::class, $this->
object
);
90
}
91
}
assBaseTestCase
Class assBaseTestCase.
Definition:
assBaseTestCase.php:27
assQuestionGUITest
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
assQuestionGUITest.php:29
assQuestionGUITest\$object
assQuestionGUI $object
Definition:
assQuestionGUITest.php:32
assQuestionGUITest\$backupGlobals
$backupGlobals
Definition:
assQuestionGUITest.php:30
assQuestionGUITest\testConstruct
testConstruct()
Definition:
assQuestionGUITest.php:87
assQuestionGUITest\setUp
setUp()
Definition:
assQuestionGUITest.php:34
assQuestionGUI
Definition:
class.assQuestionGUI.php:36
addGlobal_ilLog
addGlobal_ilLog()
Definition:
ilTestBaseTestCaseTrait.php:263
components
ILIAS
TestQuestionPool
tests
assQuestionGUITest.php
Generated on Sat Oct 18 2025 23:04:36 for ILIAS by
1.9.4 (using
Doxyfile
)