| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
 Inheritance diagram for ilMathBaseAdapterTest:
 Collaboration diagram for ilMathBaseAdapterTest: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 () | |
| addData () | |
| subData () | |
| mulData () | |
| divData () | |
| modData () | |
| sqrtData () | |
| powData () | |
| equalsData () | |
| 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 ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::addData | ( | ) | 
Definition at line 155 of file ilMathBaseAdapterTest.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 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 243 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::divData | ( | ) | 
Definition at line 187 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::equalsData | ( | ) | 
Definition at line 232 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::modData | ( | ) | 
Definition at line 199 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::mulData | ( | ) | 
| ilMathBaseAdapterTest::powData | ( | ) | 
Definition at line 222 of file ilMathBaseAdapterTest.php.
      
  | 
  protected | 
Definition at line 36 of file ilMathBaseAdapterTest.php.
References ilMath\setDefaultAdapter().
 Here is the call graph for this function:| ilMathBaseAdapterTest::sqrtData | ( | ) | 
Definition at line 209 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::subData | ( | ) | 
Definition at line 165 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::testAdd | ( | string | $a, | 
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) | 
addData
Definition at line 62 of file ilMathBaseAdapterTest.php.
References assertEqualNumbers().
 Here is the call graph for this function:| ilMathBaseAdapterTest::testCalculation | ( | string | $formula, | 
| string | $result, | ||
| int | $scale | ||
| ) | 
calcData
Definition at line 127 of file ilMathBaseAdapterTest.php.
References assertEqualNumbers().
 Here is the call graph for this function:| ilMathBaseAdapterTest::testDiv | ( | string | $a, | 
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) | 
divData
Definition at line 86 of file ilMathBaseAdapterTest.php.
References assertEqualNumbers().
 Here is the call graph for this function:| ilMathBaseAdapterTest::testDivisionsByZero | ( | ) | 
Definition at line 135 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::testEquals | ( | string | $a, | 
| string | $b, | ||
| bool | $result, | ||
| ?int | $scale | ||
| ) | 
equalsData
Definition at line 119 of file ilMathBaseAdapterTest.php.
References assertEqualNumbers().
 Here is the call graph for this function:| ilMathBaseAdapterTest::testMod | ( | string | $a, | 
| string | $b, | ||
| string | $result | ||
| ) | 
modData
| ilMathDivisionByZeroException | 
Definition at line 111 of file ilMathBaseAdapterTest.php.
References assertEqualNumbers().
 Here is the call graph for this function:| ilMathBaseAdapterTest::testModuloByZero | ( | ) | 
Definition at line 145 of file ilMathBaseAdapterTest.php.
| ilMathBaseAdapterTest::testMul | ( | string | $a, | 
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) | 
mulData
Definition at line 78 of file ilMathBaseAdapterTest.php.
References assertEqualNumbers().
 Here is the call graph for this function:| ilMathBaseAdapterTest::testPow | ( | string | $a, | 
| string | $b, | ||
| string | $result, | ||
| ?int | $scale | ||
| ) | 
powData
Definition at line 102 of file ilMathBaseAdapterTest.php.
References assertEqualNumbers().
 Here is the call graph for this function:| ilMathBaseAdapterTest::testSqrt | ( | string | $a, | 
| string | $result, | ||
| ?int | $scale | ||
| ) | 
sqrtData
Definition at line 94 of file ilMathBaseAdapterTest.php.
References assertEqualNumbers().
 Here is the call graph for this function:| ilMathBaseAdapterTest::testSub | ( | string | $a, | 
| string | $b, | ||
| string | $result, | ||
| int | $scale | ||
| ) | 
subData
Definition at line 70 of file ilMathBaseAdapterTest.php.
References assertEqualNumbers().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 31 of file ilMathBaseAdapterTest.php.
      
  | 
  protected | 
Definition at line 30 of file ilMathBaseAdapterTest.php.
      
  | 
  protected | 
Definition at line 28 of file ilMathBaseAdapterTest.php.