ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
assQuestionTest.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->object = new class () extends assQuestion {
39  public function isComplete(): bool
40  {
41  return true;
42  }
43 
44  public function saveWorkingData(int $active_id, ?int $pass = null, bool $authorized = true): bool
45  {
46  return true;
47  }
48 
49  public function getAdditionalTableName(): string
50  {
51  return '';
52  }
53 
54  public function getAnswerTableName(): string
55  {
56  return '';
57  }
58 
59  public function calculateReachedPoints(
60  int $active_id,
61  ?int $pass = null,
62  bool $authorizedSolution = true
63  ): float {
64  return 0.0;
65  }
66 
67  public function getQuestionType(): string
68  {
69  return '';
70  }
71 
72  public function duplicate(bool $for_test = true, string $title = "", string $author = "", int $owner = -1, $testObjId = null): int
73  {
74  return 0;
75  }
76 
77  public function toLog(\ILIAS\Test\Logging\AdditionalInformationGenerator $additional_info): array
78  {
79  return [];
80  }
81 
82  public function solutionValuesToLog(
83  \ILIAS\Test\Logging\AdditionalInformationGenerator $additional_info,
84  array $solution_values
85  ): array {
86  return [];
87  }
88 
89  public function solutionValuesToText(array $solution_values): array|string
90  {
91  return '';
92  }
93  };
94  }
95 
96  public function testConstruct(): void
97  {
98  $this->assertInstanceOf(assQuestion::class, $this->object);
99  }
100 }
Interface Observer Contains several chained tasks and infos about them.
Class assBaseTestCase.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
assQuestion $object
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...