PHP Класс SimpleReporter, simpletest

@package SimpleTest
Наследование: extends SimpleScorer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

getDumper() публичный Метод

Gets the formatter for small generic data items.
public getDumper ( ) : SimpleDumper
Результат SimpleDumper Formatter.

getTestCaseCount() публичный Метод

Null until the first test is started.
public getTestCaseCount ( ) : integer
Результат integer Total number of cases at start.

getTestCaseProgress() публичный Метод

Accessor for the number of test cases completed so far.
public getTestCaseProgress ( ) : integer
Результат integer Number of ended cases.

getTestList() публичный Метод

For subclasses that need to see the whole test history for display purposes.
public getTestList ( ) : array
Результат array List of methods in nesting order.

inCli() публичный статический Метод

Static check for running in the comand line.
public static inCli ( ) : boolean
Результат boolean True if CLI.

paintCaseEnd() публичный Метод

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() публичный Метод

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() публичный Метод

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

paintGroupEnd() публичный Метод

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() публичный Метод

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() публичный Метод

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

paintMethodEnd() публичный Метод

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() публичный Метод

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