PHP Class MabeEnumTest\EnumTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: marc-mabe/php-enum

Public Methods

Method Description
setUp ( )
testAmbiguousConstantsThrowsLogicException ( )
testCallingGetOrdinalTwoTimesWillResultTheSameValue ( )
testClear ( )
testCloneNotCallableAndThrowsLogicException ( )
testConstVisibility ( )
testConstVisibilityExtended ( )
testEnumInheritance ( )
testExtendedAmbiguousCanstantsThrowsLogicException ( )
testGetAllValues ( )
testGetByExtendedInstanceOfKnownValue ( )
testGetByInstance ( )
testGetEnumerators ( )
testGetNameReturnsConstantNameOfCurrentValue ( )
testGetWithInvalidTypeOfValueThrowsInvalidArgumentException ( )
testGetWithInvalidValueThrowsInvalidArgumentException ( )
testGetWithNonStrictValueThrowsInvalidArgumentException ( )
testGetWithStrictValue ( )
testHas ( )
testInstantiateByName ( )
testInstantiateByUnknownNameThrowsInvalidArgumentException ( )
testInstantiateUsingInvalidOrdinalNumberThrowsInvalidArgumentException ( )
testInstantiateUsingMagicMethod ( )
testInstantiateUsingOrdinalNumber ( )
testIsBasic ( )
testNotSerializable ( )
testNotUnserializable ( )
testSingleton ( )
testToStringMagicMethodReturnsName ( )

Method Details

setUp() public method

public setUp ( )

testAmbiguousConstantsThrowsLogicException() public method

testCallingGetOrdinalTwoTimesWillResultTheSameValue() public method

testClear() public method

public testClear ( )

testCloneNotCallableAndThrowsLogicException() public method

testConstVisibility() public method

public testConstVisibility ( )

testConstVisibilityExtended() public method

testEnumInheritance() public method

public testEnumInheritance ( )

testExtendedAmbiguousCanstantsThrowsLogicException() public method

testGetAllValues() public method

public testGetAllValues ( )

testGetByExtendedInstanceOfKnownValue() public method

testGetByInstance() public method

public testGetByInstance ( )

testGetEnumerators() public method

public testGetEnumerators ( )

testGetNameReturnsConstantNameOfCurrentValue() public method

testGetWithInvalidTypeOfValueThrowsInvalidArgumentException() public method

testGetWithInvalidValueThrowsInvalidArgumentException() public method

testGetWithNonStrictValueThrowsInvalidArgumentException() public method

testGetWithStrictValue() public method

testHas() public method

public testHas ( )

testInstantiateByName() public method

testInstantiateByUnknownNameThrowsInvalidArgumentException() public method

testInstantiateUsingInvalidOrdinalNumberThrowsInvalidArgumentException() public method

testInstantiateUsingMagicMethod() public method

testInstantiateUsingOrdinalNumber() public method

testIsBasic() public method

public testIsBasic ( )

testNotSerializable() public method

public testNotSerializable ( )

testNotUnserializable() public method

testSingleton() public method

public testSingleton ( )

testToStringMagicMethodReturnsName() public method