ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilMathBCAdapterTest Class Reference
+ Inheritance diagram for ilMathBCAdapterTest:
+ Collaboration diagram for ilMathBCAdapterTest:

Public Member Functions

 setUp ()
 
 powData ()
 
- Public Member Functions inherited from ilMathBaseAdapterTest
 testAdd ($a, $b, $result, $scale)
 addData More...
 
 testSub ($a, $b, $result, $scale)
 subData More...
 
 testMul ($a, $b, $result, $scale)
 mulData More...
 
 testDiv ($a, $b, $result, $scale)
 divData More...
 
 testSqrt ($a, $result, $scale)
 sqrtData More...
 
 testPow ($a, $b, $result, $scale)
 powData More...
 
 testMod ($a, $b, $result)
 modData More...
 
 testEquals ($a, $b, $result, $scale)
 equalsData More...
 
 testCalculation ($formula, $result, $scale)
 calcData More...
 
 testDivisionsByZero ()
 
 testModuloByZero ()
 
 addData ()
 
 subData ()
 
 mulData ()
 
 divData ()
 
 modData ()
 
 sqrtData ()
 
 powData ()
 
 equalsData ()
 
 calcData ()
 

Additional Inherited Members

- Data Fields inherited from ilMathBaseAdapterTest
const DEFAULT_SCALE = 50
 
- Protected Member Functions inherited from ilMathBaseAdapterTest
 setUp ()
 
- Protected Attributes inherited from ilMathBaseAdapterTest
 $mathAdapter
 
 $evalMath
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

Definition at line 10 of file ilMathBCAdapterTest.php.

Member Function Documentation

◆ powData()

ilMathBCAdapterTest::powData ( )
Returns
array

Definition at line 30 of file ilMathBCAdapterTest.php.

31  {
32  return array_merge([
33  ['2', '64', '18446744073709551616', self::DEFAULT_SCALE],
34  ], parent::powData());
35  }

◆ setUp()

ilMathBCAdapterTest::setUp ( )

Definition at line 15 of file ilMathBCAdapterTest.php.

16  {
17  if (!extension_loaded('bcmath')) {
18  $this->markTestSkipped('Could not execute test due to missing bcmath extension!');
19  return;
20  }
21 
22  require_once 'Services/Math/classes/class.ilMathBCMathAdapter.php';
23  $this->mathAdapter = new ilMathBCMathAdapter();
24  parent::setUp();
25  }
Class ilMathBCMathAdapter.

The documentation for this class was generated from the following file: