4 require_once
'libs/composer/vendor/autoload.php';
34 $isCorrect = $result->
isCorrect($variables, $results, $userResult, $userResultUnit);
35 $this->assertEquals($expectedResult, $isCorrect);
47 $meter->initFormArray([
54 'baseunit_title' =>
'' 58 $centimeter->initFormArray([
62 'unit' =>
'Centimeter',
65 'baseunit_title' =>
'Meter' 69 $newtonmetre->initFormArray([
73 'unit' =>
'Newton Metre',
76 'baseunit_title' =>
'' 80 $newtoncentimeter->initFormArray([
84 'unit' =>
'Newton Centimeter',
87 'baseunit_title' =>
'Newton Metre' 93 $v1->setIntprecision(1);
95 $v2->setIntprecision(1);
100 $v3->setVariable(
'$v3');
102 $v4->setVariable(
'$v4');
240 $v9->setVariable(
'$v9');
242 $v10->setVariable(
'$v10');
245 $v11->setVariable(
'$v11');
247 $v12->setVariable(
'$v12');
305 $v15->setIntprecision(25);
306 $v16->setIntprecision(5);
307 $v17->setIntprecision(1);
317 '1/(2*pi)*sqrt($v16*1000/$v15)+$v17-$v17',
328 $v1->getVariable() => $v1,
329 $v2->getVariable() => $v2,
330 $v3->getVariable() => $v3,
331 $v4->getVariable() => $v4,
332 $v5->getVariable() => $v5,
333 $v6->getVariable() => $v6,
334 $v7->getVariable() => $v7,
335 $v8->getVariable() => $v8,
336 $v9->getVariable() => $v9,
337 $v10->getVariable() => $v10,
338 $v11->getVariable() => $v11,
339 $v12->getVariable() => $v12,
340 $v13->getVariable() => $v13,
341 $v14->getVariable() => $v14,
342 $v15->getVariable() => $v15,
343 $v16->getVariable() => $v16,
344 $v17->getVariable() => $v17,
348 $r1->getResult() => $r1,
349 $r2->getResult() => $r2,
350 $r3->getResult() => $r3,
351 $r4->getResult() => $r4,
352 $r5->getResult() => $r5,
353 $r6->getResult() => $r6,
354 $r7->getResult() => $r7,
355 $r8->getResult() => $r8,
356 $r9->getResult() => $r9,
357 $r10->getResult() => $r10,
358 $r11->getResult() => $r11,
359 $r12->getResult() => $r12,
364 [$r1, $variables,
$results,
'129.36', $newtoncentimeter,
true],
365 [$r2, $variables,
$results,
'1.29', $newtonmetre,
true],
366 [$r3, $variables,
$results,
'1.29', $newtonmetre,
true],
367 [$r4, $variables,
$results,
'129.36', $newtoncentimeter,
true],
368 [$r5, $variables,
$results,
'1.29', null,
true],
369 [$r6, $variables,
$results,
'129.36', null,
true],
371 [$r7, $variables,
$results,
'1/3', null,
true],
372 [$r8, $variables,
$results,
'4/8', null,
true],
374 [$r9, $variables,
$results,
'1/2', null,
true],
375 [$r10, $variables,
$results,
'4/8', null,
false],
377 [$r11, $variables,
$results,
'1/3', null,
true],
379 [$r12, $variables,
$results,
'3.0', null,
true],
Create styles array
The data for the language used.