33 protected function setUp(): void
36 $lng = $this->getMockBuilder(\ilLanguage::class)
37 ->disableOriginalConstructor()
40 ->will($this->returnArgument(0));
42 $this->setGlobalVariable(
'lng',
$lng);
62 $this->markTestSkipped(
'Data Provider needs to be revisited.');
63 $isCorrect = $result->isCorrect($variables,
$results, $userResult, $userResultUnit);
64 $this->assertEquals($expectedResult, $isCorrect);
73 $meter->initFormArray([
80 'baseunit_title' =>
'',
84 $centimeter->initFormArray([
88 'unit' =>
'Centimeter',
91 'baseunit_title' =>
'Meter',
95 $newtonmetre->initFormArray([
99 'unit' =>
'Newton Metre',
102 'baseunit_title' =>
'',
106 $newtoncentimeter->initFormArray([
110 'unit' =>
'Newton Centimeter',
113 'baseunit_title' =>
'Newton Metre',
119 $v1->setIntprecision(1);
121 $v2->setIntprecision(1);
126 $v3->setVariable(
'$v3');
128 $v4->setVariable(
'$v4');
266 $v9->setVariable(
'$v9');
268 $v10->setVariable(
'$v10');
271 $v11->setVariable(
'$v11');
273 $v12->setVariable(
'$v12');
331 $v15->setIntprecision(25);
332 $v16->setIntprecision(5);
333 $v17->setIntprecision(1);
343 '1/(2*pi)*sqrt($v16*1000/$v15)+$v17-$v17',
358 '1/(2*pi)*sqrt($v16*1000/$v15)+$v17-$v17',
384 $v1->getVariable() => $v1,
385 $v2->getVariable() => $v2,
386 $v3->getVariable() => $v3,
387 $v4->getVariable() => $v4,
388 $v5->getVariable() => $v5,
389 $v6->getVariable() => $v6,
390 $v7->getVariable() => $v7,
391 $v8->getVariable() => $v8,
392 $v9->getVariable() => $v9,
393 $v10->getVariable() => $v10,
394 $v11->getVariable() => $v11,
395 $v12->getVariable() => $v12,
396 $v13->getVariable() => $v13,
397 $v14->getVariable() => $v14,
398 $v15->getVariable() => $v15,
399 $v16->getVariable() => $v16,
400 $v17->getVariable() => $v17,
404 $r1->getResult() => $r1,
405 $r2->getResult() => $r2,
406 $r3->getResult() => $r3,
407 $r4->getResult() => $r4,
408 $r5->getResult() => $r5,
409 $r6->getResult() => $r6,
410 $r7->getResult() => $r7,
411 $r8->getResult() => $r8,
412 $r9->getResult() => $r9,
413 $r10->getResult() => $r10,
414 $r11->getResult() => $r11,
415 $r12->getResult() => $r12,
416 $r13->getResult() => $r13,
417 $r14->getResult() => $r14,
422 [$r1, $variables,
$results,
'129.36', $newtoncentimeter,
true],
423 [$r2, $variables,
$results,
'1.29', $newtonmetre,
true],
424 [$r3, $variables,
$results,
'1.29', $newtonmetre,
true],
425 [$r4, $variables,
$results,
'129.36', $newtoncentimeter,
true],
Customizing of pimple-DIC for ILIAS.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null