Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
MabeEnumTest
EnumTest
PHP Class MabeEnumTest\EnumTest
See link:
for the canonical source repository
Inheritance:
extends
PHPUnit_Framework_TestCase
Exibir arquivo
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
public
testAmbiguousConstantsThrowsLogicException
( )
testCallingGetOrdinalTwoTimesWillResultTheSameValue()
public
method
public
testCallingGetOrdinalTwoTimesWillResultTheSameValue
( )
testClear()
public
method
public
testClear
( )
testCloneNotCallableAndThrowsLogicException()
public
method
public
testCloneNotCallableAndThrowsLogicException
( )
testConstVisibility()
public
method
public
testConstVisibility
( )
testConstVisibilityExtended()
public
method
public
testConstVisibilityExtended
( )
testEnumInheritance()
public
method
public
testEnumInheritance
( )
testExtendedAmbiguousCanstantsThrowsLogicException()
public
method
public
testExtendedAmbiguousCanstantsThrowsLogicException
( )
testGetAllValues()
public
method
public
testGetAllValues
( )
testGetByExtendedInstanceOfKnownValue()
public
method
public
testGetByExtendedInstanceOfKnownValue
( )
testGetByInstance()
public
method
public
testGetByInstance
( )
testGetEnumerators()
public
method
public
testGetEnumerators
( )
testGetNameReturnsConstantNameOfCurrentValue()
public
method
public
testGetNameReturnsConstantNameOfCurrentValue
( )
testGetWithInvalidTypeOfValueThrowsInvalidArgumentException()
public
method
public
testGetWithInvalidTypeOfValueThrowsInvalidArgumentException
( )
testGetWithInvalidValueThrowsInvalidArgumentException()
public
method
public
testGetWithInvalidValueThrowsInvalidArgumentException
( )
testGetWithNonStrictValueThrowsInvalidArgumentException()
public
method
public
testGetWithNonStrictValueThrowsInvalidArgumentException
( )
testGetWithStrictValue()
public
method
public
testGetWithStrictValue
( )
testHas()
public
method
public
testHas
( )
testInstantiateByName()
public
method
public
testInstantiateByName
( )
testInstantiateByUnknownNameThrowsInvalidArgumentException()
public
method
public
testInstantiateByUnknownNameThrowsInvalidArgumentException
( )
testInstantiateUsingInvalidOrdinalNumberThrowsInvalidArgumentException()
public
method
public
testInstantiateUsingInvalidOrdinalNumberThrowsInvalidArgumentException
( )
testInstantiateUsingMagicMethod()
public
method
public
testInstantiateUsingMagicMethod
( )
testInstantiateUsingOrdinalNumber()
public
method
public
testInstantiateUsingOrdinalNumber
( )
testIsBasic()
public
method
public
testIsBasic
( )
testNotSerializable()
public
method
public
testNotSerializable
( )
testNotUnserializable()
public
method
public
testNotUnserializable
( )
testSingleton()
public
method
public
testSingleton
( )
testToStringMagicMethodReturnsName()
public
method
public
testToStringMagicMethodReturnsName
( )