|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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 $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 139 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 | $actual | |
| string | $expected |
@noinspection 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 227 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
|
static |
Definition at line 171 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
|
static |
Definition at line 216 of file ilMathBaseAdapterTestCase.php.
|
static |
Definition at line 183 of file ilMathBaseAdapterTestCase.php.
|
static |
Definition at line 159 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
|
static |
Reimplemented in ilMathBCAdapterTest.
Definition at line 206 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
|
protected |
@inheritDoc
Reimplemented in ilMathBCAdapterTest, and ilMathPhpAdapterTest.
Definition at line 36 of file ilMathBaseAdapterTestCase.php.
References ilMath\setDefaultAdapter().
Here is the call graph for this function:
|
static |
Definition at line 193 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
|
static |
Definition at line 149 of file ilMathBaseAdapterTestCase.php.
References DEFAULT_SCALE.
| ilMathBaseAdapterTestCase::testAdd | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) |
Definition at line 60 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 111 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 78 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 119 of file ilMathBaseAdapterTestCase.php.
| ilMathBaseAdapterTestCase::testEquals | ( | string | $a, |
| string | $b, | ||
| bool | $result, | ||
| ?int | $scale | ||
| ) |
Definition at line 105 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 99 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 129 of file ilMathBaseAdapterTestCase.php.
| ilMathBaseAdapterTestCase::testMul | ( | string | $a, |
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) |
Definition at line 72 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 90 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 84 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 66 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 31 of file ilMathBaseAdapterTestCase.php.
|
protected |
Definition at line 30 of file ilMathBaseAdapterTestCase.php.
|
protected |
Definition at line 28 of file ilMathBaseAdapterTestCase.php.
Referenced by addData(), calcData(), divData(), mulData(), powData(), sqrtData(), and subData().