PHP Class SimpleReporter, simpletest

@package SimpleTest
Inheritance: extends SimpleScorer
Afficher le fichier Open project: simpletest/simpletest Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getDumper() public méthode

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

getTestCaseCount() public méthode

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

getTestCaseProgress() public méthode

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

getTestList() public méthode

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

inCli() public static méthode

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

paintCaseEnd() public méthode

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 méthode

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 méthode

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

paintGroupEnd() public méthode

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 méthode

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 méthode

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

paintMethodEnd() public méthode

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 méthode

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