|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for ilMathBaseAdapterTestCase:
Collaboration diagram for ilMathBaseAdapterTestCase:Public Member Functions | |
| testAdd (string $a, string $b, string $result, int $scale) | |
| testSub (string $a, string $b, string $result, int $scale) | |
| testMul (string $a, string $b, string $result, int $scale) | |
| testDiv (string $a, string $b, string $result, int $scale) | |
| testSqrt (string $a, string $result, ?int $scale) | |
| testPow (string $a, string $b, string $result, ?int $scale) | |
| testMod (string $a, string $b, string $result) | |
| testEquals (string $a, string $b, bool $result, ?int $scale) | |
| testCalculation (string $formula, string $result, int $scale) | |
| 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 () | |
| @inheritDoc More... | |
Protected Attributes | |
| const | DEFAULT_SCALE = 50 |
| ilMathAdapter | $mathAdapter |
| EvalMath | $evalMath |
Private Member Functions | |
| assertEqualNumbers (string $expected, string $actual) | |
| 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 24 of file ilMathBaseAdapterTestCase.php.
|
static |
Definition at line 138 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
|
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 | $expected | |
| string | $actual |
@noinspection PhpUnitTestsInspection
Definition at line 49 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 226 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
|
static |
Definition at line 170 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
|
static |
Definition at line 215 of file ilMathBaseAdapterTestCase.php.
|
static |
Definition at line 182 of file ilMathBaseAdapterTestCase.php.
|
static |
Definition at line 158 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
|
static |
Reimplemented in ilMathBCAdapterTest.
Definition at line 205 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
|
protected |
@inheritDoc
Reimplemented in ilMathBCAdapterTest, and ilMathPhpAdapterTest.
Definition at line 34 of file ilMathBaseAdapterTestCase.php.
References ilMath\setDefaultAdapter(), and setUp().
Here is the call graph for this function:
|
static |
Definition at line 192 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
|
static |
Definition at line 148 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
| ilMathBaseAdapterTestCase::testAdd | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) |
Definition at line 59 of file ilMathBaseAdapterTestCase.php.
References Vendor\Package\$a, Vendor\Package\$b, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testCalculation | ( | string | $formula, |
| string | $result, | ||
| int | $scale | ||
| ) |
Definition at line 110 of file ilMathBaseAdapterTestCase.php.
References assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testDiv | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) |
Definition at line 77 of file ilMathBaseAdapterTestCase.php.
References Vendor\Package\$a, Vendor\Package\$b, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testDivisionsByZero | ( | ) |
Definition at line 118 of file ilMathBaseAdapterTestCase.php.
| ilMathBaseAdapterTestCase::testEquals | ( | string | $a, |
| string | $b, | ||
| bool | $result, | ||
| ?int | $scale | ||
| ) |
Definition at line 104 of file ilMathBaseAdapterTestCase.php.
References Vendor\Package\$a, Vendor\Package\$b, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testMod | ( | string | $a, |
| string | $b, | ||
| string | $result | ||
| ) |
| ilMathDivisionByZeroException |
Definition at line 98 of file ilMathBaseAdapterTestCase.php.
References Vendor\Package\$a, Vendor\Package\$b, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testModuloByZero | ( | ) |
Definition at line 128 of file ilMathBaseAdapterTestCase.php.
| ilMathBaseAdapterTestCase::testMul | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) |
Definition at line 71 of file ilMathBaseAdapterTestCase.php.
References Vendor\Package\$a, Vendor\Package\$b, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testPow | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| ?int | $scale | ||
| ) |
Definition at line 89 of file ilMathBaseAdapterTestCase.php.
References Vendor\Package\$a, Vendor\Package\$b, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testSqrt | ( | string | $a, |
| string | $result, | ||
| ?int | $scale | ||
| ) |
Definition at line 83 of file ilMathBaseAdapterTestCase.php.
References Vendor\Package\$a, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTestCase::testSub | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) |
Definition at line 65 of file ilMathBaseAdapterTestCase.php.
References Vendor\Package\$a, Vendor\Package\$b, and assertEqualNumbers().
Here is the call graph for this function:
|
protected |
Definition at line 29 of file ilMathBaseAdapterTestCase.php.
|
protected |
Definition at line 28 of file ilMathBaseAdapterTestCase.php.
|
protected |
Definition at line 26 of file ilMathBaseAdapterTestCase.php.
Referenced by addData(), calcData(), divData(), mulData(), powData(), sqrtData(), and subData().