19 declare(strict_types=1);
34 protected function setUp(): void
47 $expected = is_array([]);
50 $actual = is_array($this->ass_mark_schema->getMarkSteps());
56 "Constructor failed, mark_steps not an array." 67 $txt_failed_short =
"failed";
68 $txt_failed_official =
"failed";
69 $percentage_failed = 0;
70 $failed_passed =
false;
71 $txt_passed_short =
"passed";
72 $txt_passed_official =
"passed";
73 $percentage_passed = 50;
74 $passed_passed =
true;
77 $mark_schema = $this->ass_mark_schema->createSimpleSchema();
78 $marks = $mark_schema->getMarkSteps();
85 $failed->getShortName(),
87 'Failed on $txt_failed_short' 90 $failed->getOfficialName(),
92 'Failed on $txt_failed_official' 95 $failed->getMinimumLevel(),
97 'Failed on $percentage_failed' 100 $failed->getPassed(),
102 'Failed on $failed_passed' 106 $passed->getShortName(),
108 'Failed on $txt_passed_short' 111 $passed->getOfficialName(),
112 $txt_passed_official,
113 'Failed on $txt_passed_official' 116 $passed->getMinimumLevel(),
118 'Failed on $percetage_passed' 121 $passed->getPassed(),
123 'Failed on $passed_passed' 133 $txt_failed_short =
"failed";
134 $txt_failed_official =
"failed";
135 $percentage_failed = 0;
136 $failed_passed =
false;
137 $txt_passed_short =
"passed";
138 $txt_passed_official =
"passed";
139 $percentage_passed = 50;
140 $passed_passed =
true;
143 $mark_schema = $this->ass_mark_schema->createSimpleSchema(
145 $txt_failed_official,
149 $txt_passed_official,
154 $marks = $mark_schema->getMarkSteps();
161 $failed->getShortName(),
163 'Failed on $txt_failed_short' 166 $failed->getOfficialName(),
167 $txt_failed_official,
168 'Failed on $txt_failed_official' 171 $failed->getMinimumLevel(),
173 'Failed on $percentage_failed' 176 $failed->getPassed(),
178 'Failed on $failed_passed' 182 $passed->getShortName(),
184 'Failed on $txt_passed_short' 187 $passed->getOfficialName(),
188 $txt_passed_official,
189 'Failed on $txt_passed_official' 192 $passed->getMinimumLevel(),
194 'Failed on $percetage_passed' 197 $passed->getPassed(),
199 'Failed on $passed_passed' A class defining mark schemas for assessment test objects.
testCreateSimpleSchemaCustom()
Test for createSimpleSchema using custom values.
MarkSchema $ass_mark_schema
Unit tests for single choice questions.
testConstructor()
Test constructor.
testCreateSimpleSchemaDefaults()
Test for createSimpleSchema using defaults.