Documentation

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

$docblockFactory

private ObjectProphecy $docblockFactory

Methods

testBackedEnumTypeIsSet()

public testBackedEnumTypeIsSet() : void

testClassImplementingInterface()

public testClassImplementingInterface() : void

testCreateThrowsException()

public testCreateThrowsException() : void

testCreateWithDocBlock()

public testCreateWithDocBlock() : void

testIteratesStatements()

public testIteratesStatements() : void

testSimpleCreate()

public testSimpleCreate() : void

        
On this page

Search results