public
Description: PHP5 Unit Testing Framework
Home | Edit | New

Reporter Classes

(Page is very lacking, key interface below)


/**
 * Serialized Reports Output, used in aggregation
 */
class Snap_OUTPUTTYPE_UnitTestReporter extends Snap_UnitTestReporter implements Snap_UnitTestReporterInterface {

    public function generateHeader() {}
    
    public function announceTestCount($test_count) {}
    
    public function announceTestPass($report) {}
    
    public function announceTestFail($report) {}
    
    public function announceTestDefect($report) {}

    public function announceTestTodo($report) {}
    
    public function announceTestSkip($report) {}
    
    public function announceTestCaseComplete($report) {}
    
    public function generateReport($reports) {
        echo json_encode($reports);
    }
    
    public function generateFooter() {}
}

generateHeader() runs at the start of output
announceTestCount() announces the total number of tests to run
announceTestPass() announces a test passed successfully
announceTestFail() announces a test failed
announceTestDefect() announces a test was defective during setup / teardown
announceTestTodo() announces an incomplete test
announceTestSkip() announces that the current test has been skipped
announceTestCaseComplete() announces that a collection of tests have completed
generateReport() creates a report of all processed tests up to this point
generateFooter() runs at the end of output
Last edited by Jakobo, Sun Jul 19 16:19:53 -0700 2009
Home | Edit | New
Versions: