LoggerState
class LoggerState implements TestState (View source)
Disables any user configured loggers by pushing a NullHandler during PHPUnit tests.
This is designed specifically for Monolog. If using another PSR-3 compatible logging package, this will not do anything.
Methods
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