PHP Class SimpleReporter, simpletest

@package SimpleTest
Inheritance: extends SimpleScorer
Show file Open project: simpletest/simpletest Class Usage Examples

Public Methods

Method Description
__construct ( ) Starts the display with no results in.
getDumper ( ) : SimpleDumper Gets the formatter for small generic data items.
getTestCaseCount ( ) : integer Accessor for total test size in number of test cases.
getTestCaseProgress ( ) : integer Accessor for the number of test cases completed so far.
getTestList ( ) : array Accessor for internal test stack.
inCli ( ) : boolean Static check for running in the comand line.
paintCaseEnd ( string $test_name ) Paints the end of a test case.
paintCaseStart ( string $test_name ) Paints the start of a test case.
paintFooter ( string $test_name ) Paints the test document footer.
paintGroupEnd ( string $test_name ) Paints the end of a group test.
paintGroupStart ( string $test_name, integer $size ) Paints the start of a group test.
paintHeader ( string $test_name ) Paints the test document header.
paintMethodEnd ( string $test_name ) Paints the end of a test method.
paintMethodStart ( string $test_name ) Paints the start of a test method.

Method Details

__construct() public method

Starts the display with no results in.
public __construct ( )

getDumper() public method

Gets the formatter for small generic data items.
public getDumper ( ) : SimpleDumper
return SimpleDumper Formatter.

getTestCaseCount() public method

Null until the first test is started.
public getTestCaseCount ( ) : integer
return integer Total number of cases at start.

getTestCaseProgress() public method

Accessor for the number of test cases completed so far.
public getTestCaseProgress ( ) : integer
return integer Number of ended cases.

getTestList() public method

For subclasses that need to see the whole test history for display purposes.
public getTestList ( ) : array
return array List of methods in nesting order.

inCli() public static method

Static check for running in the comand line.
public static inCli ( ) : boolean
return boolean True if CLI.

paintCaseEnd() public method

Will paint the page footer if the stack of tests has unwound.
public paintCaseEnd ( string $test_name )
$test_name string Name of test that is ending.

paintCaseStart() public method

Will also paint the page header and footer if this is the first test. Will stash the size if the first start.
public paintCaseStart ( string $test_name )
$test_name string Name of test that is starting.

paintFooter() public method

Paints the test document footer.
public paintFooter ( string $test_name )
$test_name string The top level test.

paintGroupEnd() public method

Will paint the page footer if the stack of tests has unwound.
public paintGroupEnd ( string $test_name )
$test_name string Name of test that is ending.

paintGroupStart() public method

Will also paint the page header and footer if this is the first test. Will stash the size if the first start.
public paintGroupStart ( string $test_name, integer $size )
$test_name string Name of test that is starting.
$size integer Number of test cases starting.

paintHeader() public method

Paints the test document header.
public paintHeader ( string $test_name )
$test_name string First test top level to start.

paintMethodEnd() public method

Will paint the page footer if the stack of tests has unwound.
public paintMethodEnd ( string $test_name )
$test_name string Name of test that is ending.

paintMethodStart() public method

Paints the start of a test method.
public paintMethodStart ( string $test_name )
$test_name string Name of test that is starting.