EnumCaseTest
extends TestCase
in package
uses
ProphecyTrait
FinalYes
Base test case for all strategies, to be sure that they check if the can handle objects before handeling them.
Attributes
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Factory\EnumCase::class
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Factory\AbstractFactory::class
Table of Contents
Properties
- $fixture : ProjectFactoryStrategy
- $docblockFactory : ObjectProphecy
Methods
- createContext() : ContextStack
- testCreateThrowsException() : void
- testMatches() : void
- testSimpleCreate() : void
- setUp() : void
- buildEnumCaseMock() : ObjectProphecy
- performCreate() : Enum_
Properties
$fixture
protected
ProjectFactoryStrategy
$fixture
$docblockFactory
private
ObjectProphecy
$docblockFactory
Methods
createContext()
public
static createContext([Context|null $typeContext = null ]) : ContextStack
Parameters
- $typeContext : Context|null = null
Return values
ContextStacktestCreateThrowsException()
public
testCreateThrowsException() : void
testMatches()
public
testMatches() : void
testSimpleCreate()
public
testSimpleCreate() : void
setUp()
protected
setUp() : void
buildEnumCaseMock()
private
buildEnumCaseMock() : ObjectProphecy
Return values
ObjectProphecyperformCreate()
private
performCreate(EnumCase $enumCase) : Enum_
Parameters
- $enumCase : EnumCase