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

Public Member Functions

 validVersionNumberDataProvider ()
 
 invalidVersionNumberDataProvider ()
 
 convertVersionNumberToIntegerConvertsVersionNumbersToIntegers ($expected, $version)
 
 convertIntegerToVersionNumberConvertsIntegerToVersionNumber ($versionNumber, $expected)
 
 convertIntegerToVersionNumberConvertsOtherTypesAsIntegerToVersionNumber ($version)
 
 getNumericTypo3VersionNumberDataProvider ()
 
 getNumericTypo3VersionNumber ($currentVersion, $expectedVersion)
 
 convertVersionsStringToVersionNumbersForcesVersionNumberInRangeDataProvider ()
 
 convertVersionsStringToVersionNumbersForcesVersionNumberInRange ($versionString, $expectedResult)
 

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 23 of file VersionNumberUtilityTest.php.

Member Function Documentation

convertIntegerToVersionNumberConvertsIntegerToVersionNumber (   $versionNumber,
  $expected 
)
Test:
validVersionNumberDataProvider

Definition at line 75 of file VersionNumberUtilityTest.php.

References VersionNumberUtility\convertIntegerToVersionNumber().

convertIntegerToVersionNumberConvertsOtherTypesAsIntegerToVersionNumber (   $version)
Test:
invalidVersionNumberDataProvider

Definition at line 86 of file VersionNumberUtilityTest.php.

References VersionNumberUtility\convertIntegerToVersionNumber().

convertVersionNumberToIntegerConvertsVersionNumbersToIntegers (   $expected,
  $version 
)
Test:
validVersionNumberDataProvider

Definition at line 66 of file VersionNumberUtilityTest.php.

References VersionNumberUtility\convertVersionNumberToInteger().

convertVersionsStringToVersionNumbersForcesVersionNumberInRange (   $versionString,
  $expectedResult 
)
Test:
convertVersionsStringToVersionNumbersForcesVersionNumberInRangeDataProvider

Definition at line 177 of file VersionNumberUtilityTest.php.

References VersionNumberUtility\convertVersionsStringToVersionNumbers().

convertVersionsStringToVersionNumbersForcesVersionNumberInRangeDataProvider ( )

Data provider for convertVersionsStringToVersionNumbersForcesVersionNumberInRange

Returns
array

Definition at line 146 of file VersionNumberUtilityTest.php.

getNumericTypo3VersionNumber (   $currentVersion,
  $expectedVersion 
)

Check whether getNumericTypo3Version handles all kinds of valid version strings

getNumericTypo3VersionNumberDataProvider

Test:
Parameters
string$currentVersion
string$expectedVersion

Definition at line 135 of file VersionNumberUtilityTest.php.

References VersionNumberUtilityFixture\$versionNumber, and VersionNumberUtility\getNumericTypo3Version().

getNumericTypo3VersionNumberDataProvider ( )
Returns
array

Definition at line 96 of file VersionNumberUtilityTest.php.

invalidVersionNumberDataProvider ( )

Data Provider for convertIntegerToVersionNumberConvertsOtherTypesAsIntegerToVersionNumber

See also
http://php.net/manual/en/language.types.php
Returns
array

Definition at line 48 of file VersionNumberUtilityTest.php.

validVersionNumberDataProvider ( )

Data Provider for convertVersionNumberToIntegerConvertsVersionNumbersToIntegers

Returns
array

Definition at line 30 of file VersionNumberUtilityTest.php.