‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest:

Public Member Functions

 forceIntegerInRangeForcesIntegerIntoDefaultBoundaries ($expected, $value)
 
 forceIntegerInRangeSetsDefaultValueIfZeroValueIsGiven ()
 
 convertToPositiveIntegerReturnsZeroForNegativeValues ()
 
 convertToPositiveIntegerReturnsTheInputValueForPositiveValues ()
 
 canBeInterpretedAsIntegerReturnsTrue ($int)
 
 canBeInterpretedAsIntegerReturnsFalse ($int)
 
 canBeInterpretedAsFloatReturnsTrue ($val)
 
 canBeInterpretedAsFloatReturnsFalse ($int)
 
 calculateWithPriorityToAdditionAndSubtractionCorrectlyCalculatesExpression ($expected, $expression)
 
 calculateWithParenthesesCorrectlyCalculatesExpression ($expected, $expression)
 
 isIntegerInRangeIncludesLowerBoundary ()
 
 isIntegerInRangeIncludesUpperBoundary ()
 
 isIntegerInRangeAcceptsValueInRange ()
 
 isIntegerInRangeRejectsValueOutsideOfRange ()
 
 isIntegerInRangeRejectsOtherDataTypes ($inputValue)
 

Static Public Member Functions

static forceIntegerInRangeForcesIntegerIntoDefaultBoundariesDataProvider ()
 
static functionCanBeInterpretedAsIntegerValidDataProvider ()
 
static functionCanBeInterpretedAsIntegerInvalidDataProvider ()
 
static functionCanBeInterpretedAsFloatValidDataProvider ()
 
static functionCanBeInterpretedAsFloatInvalidDataProvider ()
 
static calculateWithPriorityToAdditionAndSubtractionDataProvider ()
 
static calculateWithParenthesesDataProvider ()
 
static isIntegerInRangeRejectsOtherDataTypesDataProvider ()
 

Detailed Description

Definition at line 26 of file MathUtilityTest.php.

Member Function Documentation

◆ calculateWithParenthesesCorrectlyCalculatesExpression()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::calculateWithParenthesesCorrectlyCalculatesExpression (   $expected,
  $expression 
)

◆ calculateWithParenthesesDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::calculateWithParenthesesDataProvider ( )
static

Definition at line 218 of file MathUtilityTest.php.

◆ calculateWithPriorityToAdditionAndSubtractionCorrectlyCalculatesExpression()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::calculateWithPriorityToAdditionAndSubtractionCorrectlyCalculatesExpression (   $expected,
  $expression 
)

◆ calculateWithPriorityToAdditionAndSubtractionDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::calculateWithPriorityToAdditionAndSubtractionDataProvider ( )
static

Definition at line 192 of file MathUtilityTest.php.

◆ canBeInterpretedAsFloatReturnsFalse()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::canBeInterpretedAsFloatReturnsFalse (   $int)

◆ canBeInterpretedAsFloatReturnsTrue()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::canBeInterpretedAsFloatReturnsTrue (   $val)

◆ canBeInterpretedAsIntegerReturnsFalse()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::canBeInterpretedAsIntegerReturnsFalse (   $int)

◆ canBeInterpretedAsIntegerReturnsTrue()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::canBeInterpretedAsIntegerReturnsTrue (   $int)

◆ convertToPositiveIntegerReturnsTheInputValueForPositiveValues()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::convertToPositiveIntegerReturnsTheInputValueForPositiveValues ( )

◆ convertToPositiveIntegerReturnsZeroForNegativeValues()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::convertToPositiveIntegerReturnsZeroForNegativeValues ( )

◆ forceIntegerInRangeForcesIntegerIntoDefaultBoundaries()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::forceIntegerInRangeForcesIntegerIntoDefaultBoundaries (   $expected,
  $value 
)

◆ forceIntegerInRangeForcesIntegerIntoDefaultBoundariesDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::forceIntegerInRangeForcesIntegerIntoDefaultBoundariesDataProvider ( )
static

Definition at line 28 of file MathUtilityTest.php.

◆ forceIntegerInRangeSetsDefaultValueIfZeroValueIsGiven()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::forceIntegerInRangeSetsDefaultValueIfZeroValueIsGiven ( )

◆ functionCanBeInterpretedAsFloatInvalidDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::functionCanBeInterpretedAsFloatInvalidDataProvider ( )
static

Definition at line 154 of file MathUtilityTest.php.

◆ functionCanBeInterpretedAsFloatValidDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::functionCanBeInterpretedAsFloatValidDataProvider ( )
static

◆ functionCanBeInterpretedAsIntegerInvalidDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::functionCanBeInterpretedAsIntegerInvalidDataProvider ( )
static

Definition at line 85 of file MathUtilityTest.php.

◆ functionCanBeInterpretedAsIntegerValidDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::functionCanBeInterpretedAsIntegerValidDataProvider ( )
static

◆ isIntegerInRangeAcceptsValueInRange()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::isIntegerInRangeAcceptsValueInRange ( )

◆ isIntegerInRangeIncludesLowerBoundary()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::isIntegerInRangeIncludesLowerBoundary ( )

◆ isIntegerInRangeIncludesUpperBoundary()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::isIntegerInRangeIncludesUpperBoundary ( )

◆ isIntegerInRangeRejectsOtherDataTypes()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::isIntegerInRangeRejectsOtherDataTypes (   $inputValue)

◆ isIntegerInRangeRejectsOtherDataTypesDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::isIntegerInRangeRejectsOtherDataTypesDataProvider ( )
static

Definition at line 260 of file MathUtilityTest.php.

◆ isIntegerInRangeRejectsValueOutsideOfRange()

TYPO3\CMS\Core\Tests\Unit\Utility\MathUtilityTest::isIntegerInRangeRejectsValueOutsideOfRange ( )