|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Inheritance diagram for ilMathBaseAdapterTest:
Collaboration diagram for ilMathBaseAdapterTest:Public Member Functions | |
| testAdd ($a, $b, $result, $scale) | |
| @dataProvider addData More... | |
| testSub ($a, $b, $result, $scale) | |
| @dataProvider subData More... | |
| testMul ($a, $b, $result, $scale) | |
| @dataProvider mulData More... | |
| testDiv ($a, $b, $result, $scale) | |
| @dataProvider divData More... | |
| testSqrt ($a, $result, $scale) | |
| @dataProvider sqrtData More... | |
| testPow ($a, $b, $result, $scale) | |
| @dataProvider powData More... | |
| testMod ($a, $b, $result) | |
| @dataProvider modData More... | |
| testEquals ($a, $b, $result, $scale) | |
| @dataProvider equalsData More... | |
| testCalculation ($formula, $result, $scale) | |
| @dataProvider calcData More... | |
| testDivisionsByZero () | |
| testModuloByZero () | |
| addData () | |
| subData () | |
| mulData () | |
| divData () | |
| modData () | |
| sqrtData () | |
| powData () | |
| equalsData () | |
| calcData () | |
Data Fields | |
| const | DEFAULT_SCALE = 50 |
Protected Member Functions | |
| setUp () | |
| @inheritDoc More... | |
Protected Attributes | |
| $mathAdapter | |
| $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 12 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::addData | ( | ) |
Definition at line 149 of file ilMathBaseAdapterTest.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 |
Definition at line 47 of file ilMathBaseAdapterTest.php.
Referenced by testAdd(), testCalculation(), testDiv(), testEquals(), testMod(), testMul(), testPow(), testSqrt(), and testSub().
Here is the caller graph for this function:| ilMathBaseAdapterTest::calcData | ( | ) |
Definition at line 235 of file ilMathBaseAdapterTest.php.
References DEFAULT_SCALE.
| ilMathBaseAdapterTest::divData | ( | ) |
Definition at line 180 of file ilMathBaseAdapterTest.php.
References DEFAULT_SCALE.
| ilMathBaseAdapterTest::equalsData | ( | ) |
Definition at line 224 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::modData | ( | ) |
Definition at line 191 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::mulData | ( | ) |
Definition at line 169 of file ilMathBaseAdapterTest.php.
References DEFAULT_SCALE.
| ilMathBaseAdapterTest::powData | ( | ) |
Reimplemented in ilMathBCAdapterTest.
Definition at line 214 of file ilMathBaseAdapterTest.php.
References DEFAULT_SCALE.
|
protected |
@inheritDoc
Reimplemented in ilMathBCAdapterTest, and ilMathPhpAdapterTest.
Definition at line 29 of file ilMathBaseAdapterTest.php.
References ilMath\setDefaultAdapter().
Here is the call graph for this function:| ilMathBaseAdapterTest::sqrtData | ( | ) |
Definition at line 201 of file ilMathBaseAdapterTest.php.
References DEFAULT_SCALE.
| ilMathBaseAdapterTest::subData | ( | ) |
| ilMathBaseAdapterTest::testAdd | ( | $a, | |
| $b, | |||
| $result, | |||
| $scale | |||
| ) |
@dataProvider addData
Definition at line 57 of file ilMathBaseAdapterTest.php.
References Vendor\Package\$a, Vendor\Package\$b, $result, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTest::testCalculation | ( | $formula, | |
| $result, | |||
| $scale | |||
| ) |
@dataProvider calcData
Definition at line 121 of file ilMathBaseAdapterTest.php.
References $result, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTest::testDiv | ( | $a, | |
| $b, | |||
| $result, | |||
| $scale | |||
| ) |
@dataProvider divData
Definition at line 81 of file ilMathBaseAdapterTest.php.
References Vendor\Package\$a, Vendor\Package\$b, $result, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTest::testDivisionsByZero | ( | ) |
Definition at line 129 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::testEquals | ( | $a, | |
| $b, | |||
| $result, | |||
| $scale | |||
| ) |
@dataProvider equalsData
Definition at line 113 of file ilMathBaseAdapterTest.php.
References Vendor\Package\$a, Vendor\Package\$b, $result, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTest::testMod | ( | $a, | |
| $b, | |||
| $result | |||
| ) |
@dataProvider modData
Definition at line 105 of file ilMathBaseAdapterTest.php.
References Vendor\Package\$a, Vendor\Package\$b, $result, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTest::testModuloByZero | ( | ) |
Definition at line 139 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::testMul | ( | $a, | |
| $b, | |||
| $result, | |||
| $scale | |||
| ) |
@dataProvider mulData
Definition at line 73 of file ilMathBaseAdapterTest.php.
References Vendor\Package\$a, Vendor\Package\$b, $result, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTest::testPow | ( | $a, | |
| $b, | |||
| $result, | |||
| $scale | |||
| ) |
@dataProvider powData
Definition at line 97 of file ilMathBaseAdapterTest.php.
References Vendor\Package\$a, Vendor\Package\$b, $result, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTest::testSqrt | ( | $a, | |
| $result, | |||
| $scale | |||
| ) |
@dataProvider sqrtData
Definition at line 89 of file ilMathBaseAdapterTest.php.
References Vendor\Package\$a, $result, and assertEqualNumbers().
Here is the call graph for this function:| ilMathBaseAdapterTest::testSub | ( | $a, | |
| $b, | |||
| $result, | |||
| $scale | |||
| ) |
@dataProvider subData
Definition at line 65 of file ilMathBaseAdapterTest.php.
References Vendor\Package\$a, Vendor\Package\$b, $result, and assertEqualNumbers().
Here is the call graph for this function:
|
protected |
Definition at line 24 of file ilMathBaseAdapterTest.php.
|
protected |
Definition at line 19 of file ilMathBaseAdapterTest.php.
| const ilMathBaseAdapterTest::DEFAULT_SCALE = 50 |
Definition at line 14 of file ilMathBaseAdapterTest.php.
Referenced by addData(), calcData(), divData(), mulData(), powData(), sqrtData(), and subData().