ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
assQuestionGUITest.php
Go to the documentation of this file.
1<?php
2
29{
30 protected $backupGlobals = false;
31
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}
Class assBaseTestCase.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
assQuestionGUI $object