FixtureTestState
class FixtureTestState implements TestState (View source)
Properties
| protected | bool | $loaded | Set if fixtures have been loaded | 
Methods
                                        protected                                                        
                
                    string
                
                                
                    resolveFixturePath(string $fixtureFilePath, SapphireTest $test)
        
                                            
                
            Map a fixture path to a physical file
                                        protected                                                        
                
                    string
                
                                
                    getTestAbsolutePath(SapphireTest $test)
        
                                            
                
            Useful for writing unit tests without hardcoding folder structures.
Details
        
                            
    setUp(SapphireTest $test)
        
    
    Called on setup
        
                            
    tearDown(SapphireTest $test)
        
    
    Called on tear down
        
                            
    setUpOnce(string $class)
        
    
    Called once on setup
        
                            
    tearDownOnce(string $class)
        
    
    Called once on tear down
        
                            bool|FixtureFactory
    getFixtureFactory(string $class)
        
    
    No description
        
                            
    setFixtureFactory(FixtureFactory $factory, string $class)
        
    
    No description
        
                    protected        array
    getFixturePaths(array $fixtures, SapphireTest $test)
        
    
    No description
        
                    protected        
    loadFixtures(SapphireTest $test)
        
    
    No description
        
                    protected        
    loadFixture(string $fixtureFile, SapphireTest $test)
        
    
    No description
        
                    protected        string
    resolveFixturePath(string $fixtureFilePath, SapphireTest $test)
        
    
    Map a fixture path to a physical file
        
                    protected        string
    getTestAbsolutePath(SapphireTest $test)
        
    
    Useful for writing unit tests without hardcoding folder structures.
        
                    protected        bool
    testNeedsDB(SapphireTest $test)
        
    
    No description
        
                    protected        
    resetFixtureFactory(string $class)
        
    
    Bootstrap a clean fixture factory for the given class
        
                    protected        bool
    getIsLoaded(string $class)
        
    
    Check if fixtures need to be loaded for this class