|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Inheritance diagram for ilMathBaseAdapterTestCase:
Collaboration diagram for ilMathBaseAdapterTestCase:Public Member Functions | |
| testAdd (string $a, string $b, string $result, int $scale) | |
| addData More... | |
| testSub (string $a, string $b, string $result, int $scale) | |
| subData More... | |
| testMul (string $a, string $b, string $result, int $scale) | |
| mulData More... | |
| testDiv (string $a, string $b, string $result, int $scale) | |
| divData More... | |
| testSqrt (string $a, string $result, ?int $scale) | |
| sqrtData More... | |
| testPow (string $a, string $b, string $result, ?int $scale) | |
| powData More... | |
| testMod (string $a, string $b, string $result) | |
| modData More... | |
| testEquals (string $a, string $b, bool $result, ?int $scale) | |
| equalsData More... | |
| testCalculation (string $formula, string $result, int $scale) | |
| calcData More... | |
| testDivisionsByZero () | |
| testModuloByZero () | |
Static Public Member Functions | |
| static | addData () |
| static | subData () |
| static | mulData () |
| static | divData () |
| static | modData () |
| static | sqrtData () |
| static | powData () |
| static | equalsData () |
| static | calcData () |
Protected Member Functions | |
| setUp () | |
Protected Attributes | |
| const | DEFAULT_SCALE = 50 |
| ilMathAdapter | $mathAdapter |
| EvalMath | $evalMath |
Private Member Functions | |
| assertEqualNumbers (string $actual, string $expected) | |
| This method is used as a 'Comparator' for two numeric strings and is equal to the ScalarComparator behaviour of PHPUnit 5.x In PHPUnit 8 the ScalarComparators uses a strict string comparison, so numbers with a different amount of trailing 0 decimals are not equal anymore. More... | |
Definition at line 26 of file ilMathBaseAdapterTestCase.php.
|
static |
Definition at line 155 of file ilMathBaseAdapterTestCase.php.
|
private |
This method is used as a 'Comparator' for two numeric strings and is equal to the ScalarComparator behaviour of PHPUnit 5.x In PHPUnit 8 the ScalarComparators uses a strict string comparison, so numbers with a different amount of trailing 0 decimals are not equal anymore.
| string | $actual | |
| string | $expected |
PhpUnitTestsInspection
Definition at line 51 of file ilMathBaseAdapterTestCase.php.
Referenced by testAdd(), testCalculation(), testDiv(), testEquals(), testMod(), testMul(), testPow(), testSqrt(), and testSub().
Here is the caller graph for this function:
|
static |
Definition at line 243 of file ilMathBaseAdapterTestCase.php.
|
static |
Definition at line 187 of file ilMathBaseAdapterTestCase.php.
|
static |
Definition at line 232 of file ilMathBaseAdapterTestCase.php.
|
static |
Definition at line 199 of file ilMathBaseAdapterTestCase.php.
|
static |
|
static |
Definition at line 222 of file ilMathBaseAdapterTestCase.php.
|
protected |
Definition at line 36 of file ilMathBaseAdapterTestCase.php.
References ilMath\setDefaultAdapter().
Here is the call graph for this function:
|
static |
Definition at line 209 of file ilMathBaseAdapterTestCase.php.
|
static |
Definition at line 165 of file ilMathBaseAdapterTestCase.php.
| ilMathBaseAdapterTestCase::testAdd | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) |
addData
Definition at line 62 of file ilMathBaseAdapterTestCase.php.
References assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testCalculation | ( | string | $formula, |
| string | $result, | ||
| int | $scale | ||
| ) |
calcData
Definition at line 127 of file ilMathBaseAdapterTestCase.php.
References assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testDiv | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) |
divData
Definition at line 86 of file ilMathBaseAdapterTestCase.php.
References assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testDivisionsByZero | ( | ) |
Definition at line 135 of file ilMathBaseAdapterTestCase.php.
| ilMathBaseAdapterTestCase::testEquals | ( | string | $a, |
| string | $b, | ||
| bool | $result, | ||
| ?int | $scale | ||
| ) |
equalsData
Definition at line 119 of file ilMathBaseAdapterTestCase.php.
References assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testMod | ( | string | $a, |
| string | $b, | ||
| string | $result | ||
| ) |
modData
| ilMathDivisionByZeroException |
Definition at line 111 of file ilMathBaseAdapterTestCase.php.
References assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testModuloByZero | ( | ) |
Definition at line 145 of file ilMathBaseAdapterTestCase.php.
| ilMathBaseAdapterTestCase::testMul | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) |
mulData
Definition at line 78 of file ilMathBaseAdapterTestCase.php.
References assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testPow | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| ?int | $scale | ||
| ) |
powData
Definition at line 102 of file ilMathBaseAdapterTestCase.php.
References assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testSqrt | ( | string | $a, |
| string | $result, | ||
| ?int | $scale | ||
| ) |
sqrtData
Definition at line 94 of file ilMathBaseAdapterTestCase.php.
References assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testSub | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) |
subData
Definition at line 70 of file ilMathBaseAdapterTestCase.php.
References assertEqualNumbers().
Here is the call graph for this function:
|
protected |
Definition at line 31 of file ilMathBaseAdapterTestCase.php.
|
protected |
Definition at line 30 of file ilMathBaseAdapterTestCase.php.
|
protected |
Definition at line 28 of file ilMathBaseAdapterTestCase.php.