Enum_Test
        
        extends TestCase
    
    
            
            in package
            
        
    
    
            
            Uses
                            ProphecyTrait                    
    
        
            Base test case for all strategies, to be sure that they check if the can handle objects before handeling them.
Tags
Table of Contents
- $fixture : ProjectFactoryStrategy
 - $docblockFactory : ObjectProphecy
 - 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
ContextStack —testBackedEnumTypeIsSet()
    public
                testBackedEnumTypeIsSet() : void
    
    
    
    Tags
Return values
void —testClassImplementingInterface()
    public
                testClassImplementingInterface() : void
    
    
    
    Tags
Return values
void —testCreateThrowsException()
    public
                testCreateThrowsException() : void
    
    
    
    Tags
Return values
void —testCreateWithDocBlock()
    public
                testCreateWithDocBlock() : void
    
    
    
    Tags
Return values
void —testIteratesStatements()
    public
                testIteratesStatements() : void
    
    
    
    Tags
Return values
void —testMatches()
    public
                testMatches() : void
    
    
    
    Tags
Return values
void —testSimpleCreate()
    public
                testSimpleCreate() : void
    
    
    
    Tags
Return values
void —setUp()
    protected
                setUp() : void
        
    
    
        Return values
void —buildEnumMock()
    private
                buildEnumMock() : MockInterface|Class_
    
    
    
        Return values
MockInterface|Class_ —performCreate()
    private
                performCreate(Enum_ $enumMock, StrategyContainer $containerMock) : Enum_
        
        Parameters
- $enumMock : Enum_
 - $containerMock : StrategyContainer