Enum_Test
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\Enum_::class
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Factory\AbstractFactory::class
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Enum_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Constant'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Method'
Table of Contents
Properties
- $fixture : ProjectFactoryStrategy
- $docblockFactory : ObjectProphecy
Methods
- createContext() : ContextStack
- testBackedEnumTypeIsSet() : void
- testClassImplementingInterface() : void
- testCreateThrowsException() : void
- testCreateWithDocBlock() : void
- testIteratesStatements() : void
- testMatches() : void
- testSimpleCreate() : void
- setUp() : void
- buildEnumMock() : MockInterface|Class_
- 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
ContextStacktestBackedEnumTypeIsSet()
public
testBackedEnumTypeIsSet() : void
testClassImplementingInterface()
public
testClassImplementingInterface() : void
testCreateThrowsException()
public
testCreateThrowsException() : void
testCreateWithDocBlock()
public
testCreateWithDocBlock() : void
testIteratesStatements()
public
testIteratesStatements() : void
testMatches()
public
testMatches() : void
testSimpleCreate()
public
testSimpleCreate() : void
setUp()
protected
setUp() : void
buildEnumMock()
private
buildEnumMock() : MockInterface|Class_
Return values
MockInterface|Class_performCreate()
private
performCreate(Enum_ $enumMock, StrategyContainer $containerMock) : Enum_
Parameters
- $enumMock : Enum_
- $containerMock : StrategyContainer