HtmlResultPrinter
class HtmlResultPrinter extends ResultPrinter (View source)
Prints TestDox documentation in HTML format.
Properties
| protected bool | $autoFlush | If true, flush output after every write. | from Printer | 
| protected resource | $out | from Printer | |
| protected string | $outTarget | from Printer | |
| protected NamePrettifier | $prettifier | from ResultPrinter | |
| protected string | $testClass | from ResultPrinter | |
| protected int | $testStatus | from ResultPrinter | |
| protected array | $tests | from ResultPrinter | |
| protected int | $successful | from ResultPrinter | |
| protected int | $warned | from ResultPrinter | |
| protected int | $failed | from ResultPrinter | |
| protected int | $risky | from ResultPrinter | |
| protected int | $skipped | from ResultPrinter | |
| protected int | $incomplete | from ResultPrinter | |
| protected string|null | $currentTestClassPrettified | from ResultPrinter | |
| protected string|null | $currentTestMethodPrettified | from ResultPrinter | 
Methods
No description
Handler for 'start run' event.
Handler for 'start class' event.
Handler for 'on test' event.
Handler for 'end class' event.
Handler for 'end run' event.
Details
        in ResultPrinter at         line 102
                            
    __construct(mixed $out = null, array $groups = [], array $excludeGroups = [])
        
    
    
        in ResultPrinter at         line 116
                            
    flush()
        
    
    Flush buffer and close output.
        
                            
    incrementalFlush()
        
    
    Performs a safe, incremental flush.
Do not confuse this function with the flush() function of this class, since the flush() function may close the file being written to, rendering the current object no longer usable.
        
                            
    setAutoFlush(bool $autoFlush)
        
    
    Set auto-flushing mode.
If set, incremental flushes will be done after each write. This should not be confused with the different effects of this class' flush() method.
        in ResultPrinter at         line 131
                            
    addError(Test $test, Exception $e, float $time)
        
    
    An error occurred.
        in ResultPrinter at         line 148
                            
    addWarning(Test $test, Warning $e, float $time)
        
    
    A warning occurred.
        in ResultPrinter at         line 165
                            
    addFailure(Test $test, AssertionFailedError $e, float $time)
        
    
    A failure occurred.
        in ResultPrinter at         line 182
                            
    addIncompleteTest(Test $test, Exception $e, float $time)
        
    
    Incomplete test.
        in ResultPrinter at         line 199
                            
    addRiskyTest(Test $test, Exception $e, float $time)
        
    
    Risky test.
        in ResultPrinter at         line 216
                            
    addSkippedTest(Test $test, Exception $e, float $time)
        
    
    Skipped test.
        in ResultPrinter at         line 231
                            
    startTestSuite(TestSuite $suite)
        
    
    A testsuite started.
        in ResultPrinter at         line 240
                            
    endTestSuite(TestSuite $suite)
        
    
    A testsuite ended.
        in ResultPrinter at         line 249
                            
    startTest(Test $test)
        
    
    A test started.
        in ResultPrinter at         line 298
                            
    endTest(Test $test, float $time)
        
    
    A test ended.
        in ResultPrinter at         line 324
                    protected        
    doEndClass()
        
    
    
        at         line 82
                    protected        
    startRun()
        
    
    Handler for 'start run' event.
        at         line 92
                    protected        
    startClass(string $name)
        
    
    Handler for 'start class' event.
        at         line 109
                    protected        
    onTest(string $name, bool $success = true)
        
    
    Handler for 'on test' event.
        at         line 126
                    protected        
    endClass(string $name)
        
    
    Handler for 'end class' event.
        at         line 134
                    protected        
    endRun()
        
    
    Handler for 'end run' event.