Trait_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
 - testCreateThrowsException() : void
 - testCreateWithDocBlock() : void
 - testIteratesStatements() : void
 - testMatches() : void
 - testSimpleCreate() : void
 - setUp() : void
 - buildTraitMock() : MockInterface|Trait_
 - performCreate() : Trait_
 
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 —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
        
    
    
        Return values
void —testSimpleCreate()
    public
                testSimpleCreate() : void
    
    
    
    Tags
Return values
void —setUp()
    protected
                setUp() : void
        
    
    
        Return values
void —buildTraitMock()
    private
                buildTraitMock() : MockInterface|Trait_
    
    
    
        Return values
MockInterface|Trait_ —performCreate()
    private
                performCreate(Trait_ $traitNode, StrategyContainer $containerMock) : Trait_
        
        Parameters
- $traitNode : Trait_
 - $containerMock : StrategyContainer