TraitUseTest
        
        extends TestCase
    
    
            
            in package
            
        
    
    
    
        
            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
 - consumerProvider() : array<string|int, array<string|int, mixed>>
 - createContext() : ContextStack
 - testCreateThrowsException() : void
 - testCreateThrowsExceptionWhenStackDoesNotContainClass() : void
 - testCreateWillAddUsedTraitToContextTop() : void
 - testMatchesOnlyTraitUseNode() : void
 - setUp() : void
 - givenTraitUse() : TraitUse
 
Properties
$fixture
    protected
        ProjectFactoryStrategy
    $fixture
    
        
        
    
Methods
consumerProvider()
    public
                consumerProvider() : array<string|int, array<string|int, mixed>>
    
    
    
        Return values
array<string|int, array<string|int, mixed>> —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 —testCreateThrowsExceptionWhenStackDoesNotContainClass()
    public
                testCreateThrowsExceptionWhenStackDoesNotContainClass() : void
    
    
    
    Tags
Return values
void —testCreateWillAddUsedTraitToContextTop()
    public
                testCreateWillAddUsedTraitToContextTop(Class_|Trait_ $traitConsumer) : void
    
        Parameters
Tags
Return values
void —testMatchesOnlyTraitUseNode()
    public
                testMatchesOnlyTraitUseNode() : void
    
    
    
    Tags
Return values
void —setUp()
    protected
                setUp() : void
        
    
    
        Return values
void —givenTraitUse()
    private
                givenTraitUse() : TraitUse