TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
MathUtilityTest Class Reference
Inheritance diagram for MathUtilityTest:
UnitTestCase BaseTestCase

Public Member Functions

 forceIntegerInRangeForcesIntegerIntoDefaultBoundariesDataProvider ()
 
 forceIntegerInRangeForcesIntegerIntoDefaultBoundaries ($expected, $value)
 
 forceIntegerInRangeSetsDefaultValueIfZeroValueIsGiven ()
 
 convertToPositiveIntegerReturnsZeroForNegativeValues ()
 
 convertToPositiveIntegerReturnsTheInputValueForPositiveValues ()
 
 functionCanBeInterpretedAsIntegerValidDataProvider ()
 
 canBeInterpretedAsIntegerReturnsTrue ($int)
 
 functionCanBeInterpretedAsIntegerInvalidDataProvider ()
 
 canBeInterpretedAsIntegerReturnsFalse ($int)
 
 functionCanBeInterpretedAsFloatValidDataProvider ()
 
 canBeInterpretedAsFloatReturnsTrue ($val)
 
 functionCanBeInterpretedAsFloatInvalidDataProvider ()
 
 canBeInterpretedAsFloatReturnsFalse ($int)
 
 calculateWithPriorityToAdditionAndSubtractionDataProvider ()
 
 calculateWithPriorityToAdditionAndSubtractionCorrectlyCalculatesExpression ($expected, $expression)
 
 calculateWithParenthesesDataProvider ()
 
 calculateWithParenthesesCorrectlyCalculatesExpression ($expected, $expression)
 
 isIntegerInRangeIncludesLowerBoundary ()
 
 isIntegerInRangeIncludesUpperBoundary ()
 
 isIntegerInRangeAcceptsValueInRange ()
 
 isIntegerInRangeRejectsValueOutsideOfRange ()
 
 isIntegerInRangeRejectsOtherDataTypesDataProvider ()
 
 isIntegerInRangeRejectsOtherDataTypes ($inputValue)
 

Additional Inherited Members

- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for class

Definition at line 20 of file MathUtilityTest.php.

Member Function Documentation

calculateWithParenthesesCorrectlyCalculatesExpression (   $expected,
  $expression 
)
Test:
calculateWithParenthesesDataProvider

Definition at line 296 of file MathUtilityTest.php.

calculateWithParenthesesDataProvider ( )

Data provider for calcParenthesis

Returns
array expected values, arithmetic expression

Definition at line 281 of file MathUtilityTest.php.

calculateWithPriorityToAdditionAndSubtractionCorrectlyCalculatesExpression (   $expected,
  $expression 
)
Test:
calculateWithPriorityToAdditionAndSubtractionDataProvider

Definition at line 268 of file MathUtilityTest.php.

calculateWithPriorityToAdditionAndSubtractionDataProvider ( )

Data provider for calculateWithPriorityToAdditionAndSubtraction

Returns
array expected values, arithmetic expression

Definition at line 245 of file MathUtilityTest.php.

canBeInterpretedAsFloatReturnsFalse (   $int)
Test:
functionCanBeInterpretedAsFloatInvalidDataProvider

Definition at line 232 of file MathUtilityTest.php.

canBeInterpretedAsFloatReturnsTrue (   $val)
Test:
functionCanBeInterpretedAsFloatValidDataProvider

Definition at line 187 of file MathUtilityTest.php.

canBeInterpretedAsIntegerReturnsFalse (   $int)
Test:
functionCanBeInterpretedAsIntegerInvalidDataProvider

Definition at line 151 of file MathUtilityTest.php.

canBeInterpretedAsIntegerReturnsTrue (   $int)
Test:
functionCanBeInterpretedAsIntegerValidDataProvider

Definition at line 102 of file MathUtilityTest.php.

convertToPositiveIntegerReturnsTheInputValueForPositiveValues ( )
Test:

Definition at line 72 of file MathUtilityTest.php.

convertToPositiveIntegerReturnsZeroForNegativeValues ( )
Test:

Definition at line 64 of file MathUtilityTest.php.

forceIntegerInRangeForcesIntegerIntoDefaultBoundaries (   $expected,
  $value 
)
Test:
forceIntegerInRangeForcesIntegerIntoDefaultBoundariesDataProvider

Definition at line 45 of file MathUtilityTest.php.

forceIntegerInRangeForcesIntegerIntoDefaultBoundariesDataProvider ( )

Data provider for forceIntegerInRangeForcesIntegerIntoBoundaries

Returns
array expected values, arithmetic expression

Definition at line 30 of file MathUtilityTest.php.

forceIntegerInRangeSetsDefaultValueIfZeroValueIsGiven ( )
Test:

Definition at line 53 of file MathUtilityTest.php.

functionCanBeInterpretedAsFloatInvalidDataProvider ( )

Data provider for canBeInterpretedAsFloatReturnsFalse

Returns
array Data sets

Definition at line 197 of file MathUtilityTest.php.

functionCanBeInterpretedAsFloatValidDataProvider ( )

Data provider for canBeInterpretedAsFloatReturnsTrue

Returns
array Data sets

Definition at line 164 of file MathUtilityTest.php.

References MathUtilityTest\functionCanBeInterpretedAsIntegerValidDataProvider().

functionCanBeInterpretedAsIntegerInvalidDataProvider ( )

Data provider for canBeInterpretedAsIntegerReturnsFalse

Returns
array Data sets

Definition at line 112 of file MathUtilityTest.php.

functionCanBeInterpretedAsIntegerValidDataProvider ( )

Data provider for canBeInterpretedAsIntegerReturnsTrue

Returns
array Data sets

Definition at line 85 of file MathUtilityTest.php.

Referenced by MathUtilityTest\functionCanBeInterpretedAsFloatValidDataProvider().

isIntegerInRangeAcceptsValueInRange ( )
Test:

Definition at line 323 of file MathUtilityTest.php.

isIntegerInRangeIncludesLowerBoundary ( )
Test:

Definition at line 307 of file MathUtilityTest.php.

isIntegerInRangeIncludesUpperBoundary ( )
Test:

Definition at line 315 of file MathUtilityTest.php.

isIntegerInRangeRejectsOtherDataTypes (   $inputValue)
Test:
isIntegerInRangeRejectsOtherDataTypesDataProvider

Definition at line 356 of file MathUtilityTest.php.

isIntegerInRangeRejectsOtherDataTypesDataProvider ( )

Data provider or isIntegerInRangeRejectsOtherDataTypes

Definition at line 339 of file MathUtilityTest.php.

isIntegerInRangeRejectsValueOutsideOfRange ( )
Test:

Definition at line 331 of file MathUtilityTest.php.