‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest:

Public Member Functions

 constructorThrowsExceptionIfNoConstantsAreDefined ()
 
 constructorThrowsExceptionIfInvalidValueIsRequested ()
 
 loadValuesThrowsExceptionIfGivenValueIsNotAvailableInEnumeration ()
 
 loadValuesThrowsExceptionIfDisallowedTypeIsDefinedAsConstant ()
 
 loadValuesThrowsExceptionIfNoDefaultConstantIsDefinedAndNoValueIsGiven ()
 
 loadValuesThrowsExceptionIfValueIsDefinedMultipleTimes ()
 
 doesTypeLooseComparison (string|int $testValue, string|int $expectedValue)
 
 getConstantsReturnsArrayOfPossibleValuesWithoutDefault ()
 
 getConstantsReturnsArrayOfPossibleValuesWithDefaultIfRequested ()
 
 getConstantsCanBeCalledOnInstances ()
 
 toStringReturnsValueAsString ()
 
 castReturnsObjectOfEnumerationTypeIfSimpleValueIsGiven ()
 
 castReturnsObjectOfCalledEnumerationTypeIfCalledWithValueOfDifferentType ()
 
 castReturnsGivenObjectIfCalledWithValueOfSameType ()
 
 castCastsStringToEnumerationWithCorrespondingValue ()
 
 castCastsIntegerToEnumerationWithCorrespondingValue ()
 
 equalsReturnsTrueIfIntegerIsGivenThatEqualsEnumerationsIntegerValue ()
 
 equalsReturnsTrueIfStringIsGivenThatEqualsEnumerationsIntegerValue ()
 
 equalsReturnsTrueIfEqualEnumerationIsGiven ()
 
 equalsReturnsTrueIfDifferentEnumerationWithSameValueIsGiven ()
 
 equalsReturnsFalseIfDifferentEnumerationWithDifferentValueIsGiven ()
 
 equalsReturnsFalseIfEnumerationOfSameTypeWithDifferentValueIsGiven ()
 
 getNameProvidesNameForAvailableConstant ()
 
 getNameReturnsEmptyStringForNotAvailableConstant ()
 
 getHumanReadableNameProvidesNameForAvailableConstant ()
 
 getHumanReadableNameReturnsEmptyStringForNotAvailableConstant ()
 

Static Public Member Functions

static looseEnumerationValues ()
 

Detailed Description

Definition at line 31 of file EnumerationTest.php.

Member Function Documentation

◆ castCastsIntegerToEnumerationWithCorrespondingValue()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::castCastsIntegerToEnumerationWithCorrespondingValue ( )

◆ castCastsStringToEnumerationWithCorrespondingValue()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::castCastsStringToEnumerationWithCorrespondingValue ( )

◆ castReturnsGivenObjectIfCalledWithValueOfSameType()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::castReturnsGivenObjectIfCalledWithValueOfSameType ( )

Definition at line 186 of file EnumerationTest.php.

References TYPO3\CMS\Core\Type\Enumeration\cast().

◆ castReturnsObjectOfCalledEnumerationTypeIfCalledWithValueOfDifferentType()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::castReturnsObjectOfCalledEnumerationTypeIfCalledWithValueOfDifferentType ( )

Definition at line 178 of file EnumerationTest.php.

References TYPO3\CMS\Core\Type\Enumeration\cast().

◆ castReturnsObjectOfEnumerationTypeIfSimpleValueIsGiven()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::castReturnsObjectOfEnumerationTypeIfSimpleValueIsGiven ( )

Definition at line 171 of file EnumerationTest.php.

References TYPO3\CMS\Core\Type\Enumeration\cast().

◆ constructorThrowsExceptionIfInvalidValueIsRequested()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::constructorThrowsExceptionIfInvalidValueIsRequested ( )

Definition at line 43 of file EnumerationTest.php.

◆ constructorThrowsExceptionIfNoConstantsAreDefined()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::constructorThrowsExceptionIfNoConstantsAreDefined ( )

Definition at line 34 of file EnumerationTest.php.

◆ doesTypeLooseComparison()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::doesTypeLooseComparison ( string|int  $testValue,
string|int  $expectedValue 
)

Definition at line 118 of file EnumerationTest.php.

◆ equalsReturnsFalseIfDifferentEnumerationWithDifferentValueIsGiven()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::equalsReturnsFalseIfDifferentEnumerationWithDifferentValueIsGiven ( )

Definition at line 240 of file EnumerationTest.php.

◆ equalsReturnsFalseIfEnumerationOfSameTypeWithDifferentValueIsGiven()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::equalsReturnsFalseIfEnumerationOfSameTypeWithDifferentValueIsGiven ( )

Definition at line 248 of file EnumerationTest.php.

◆ equalsReturnsTrueIfDifferentEnumerationWithSameValueIsGiven()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::equalsReturnsTrueIfDifferentEnumerationWithSameValueIsGiven ( )

Definition at line 232 of file EnumerationTest.php.

◆ equalsReturnsTrueIfEqualEnumerationIsGiven()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::equalsReturnsTrueIfEqualEnumerationIsGiven ( )

Definition at line 224 of file EnumerationTest.php.

◆ equalsReturnsTrueIfIntegerIsGivenThatEqualsEnumerationsIntegerValue()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::equalsReturnsTrueIfIntegerIsGivenThatEqualsEnumerationsIntegerValue ( )

Definition at line 210 of file EnumerationTest.php.

◆ equalsReturnsTrueIfStringIsGivenThatEqualsEnumerationsIntegerValue()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::equalsReturnsTrueIfStringIsGivenThatEqualsEnumerationsIntegerValue ( )

Definition at line 217 of file EnumerationTest.php.

◆ getConstantsCanBeCalledOnInstances()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::getConstantsCanBeCalledOnInstances ( )

Definition at line 151 of file EnumerationTest.php.

◆ getConstantsReturnsArrayOfPossibleValuesWithDefaultIfRequested()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::getConstantsReturnsArrayOfPossibleValuesWithDefaultIfRequested ( )

◆ getConstantsReturnsArrayOfPossibleValuesWithoutDefault()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::getConstantsReturnsArrayOfPossibleValuesWithoutDefault ( )

◆ getHumanReadableNameProvidesNameForAvailableConstant()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::getHumanReadableNameProvidesNameForAvailableConstant ( )

◆ getHumanReadableNameReturnsEmptyStringForNotAvailableConstant()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::getHumanReadableNameReturnsEmptyStringForNotAvailableConstant ( )

Definition at line 277 of file EnumerationTest.php.

References TYPO3\CMS\Core\Type\Enumeration\getName().

◆ getNameProvidesNameForAvailableConstant()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::getNameProvidesNameForAvailableConstant ( )

◆ getNameReturnsEmptyStringForNotAvailableConstant()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::getNameReturnsEmptyStringForNotAvailableConstant ( )

Definition at line 263 of file EnumerationTest.php.

References TYPO3\CMS\Core\Type\Enumeration\getName().

◆ loadValuesThrowsExceptionIfDisallowedTypeIsDefinedAsConstant()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::loadValuesThrowsExceptionIfDisallowedTypeIsDefinedAsConstant ( )

Definition at line 61 of file EnumerationTest.php.

◆ loadValuesThrowsExceptionIfGivenValueIsNotAvailableInEnumeration()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::loadValuesThrowsExceptionIfGivenValueIsNotAvailableInEnumeration ( )

Definition at line 52 of file EnumerationTest.php.

◆ loadValuesThrowsExceptionIfNoDefaultConstantIsDefinedAndNoValueIsGiven()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::loadValuesThrowsExceptionIfNoDefaultConstantIsDefinedAndNoValueIsGiven ( )

Definition at line 70 of file EnumerationTest.php.

◆ loadValuesThrowsExceptionIfValueIsDefinedMultipleTimes()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::loadValuesThrowsExceptionIfValueIsDefinedMultipleTimes ( )

Definition at line 79 of file EnumerationTest.php.

◆ looseEnumerationValues()

◆ toStringReturnsValueAsString()

TYPO3\CMS\Core\Tests\UnitDeprecated\Type\EnumerationTest::toStringReturnsValueAsString ( )

Definition at line 164 of file EnumerationTest.php.