19 if (defined(
'ILIAS_PHPUNIT_CONTEXT')) {
20 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
21 ilUnitUtil::performInitialisation();
23 chdir(dirname(__FILE__));
28 require_once
'./Services/UICore/classes/class.ilCtrl.php';
29 $ilCtrl_mock = $this->createMock(
'ilCtrl');
30 $ilCtrl_mock->expects($this->any())->method(
'saveParameter');
31 $ilCtrl_mock->expects($this->any())->method(
'saveParameterByClass');
34 require_once
'./Services/Language/classes/class.ilLanguage.php';
35 $lng_mock = $this->createMock(
'ilLanguage', array(
'txt'), array(),
'',
false);
48 require_once
'./Modules/TestQuestionPool/classes/class.assMultipleChoiceGUI.php';
53 $this->assertInstanceOf(
'assMultipleChoiceGUI', $instance);
test_instantiateObject_shouldReturnInstance()
setGlobalVariable($name, $value)
Multiple choice question GUI representation.
Unit tests for single choice questions.