PHP Class MyReporter, 68kb

@package SimpleTest
Inheritance: extends SimpleReporter
ファイルを表示 Open project: 68kb/68kb

Protected Properties

Property Type Description
$_charset

Public Methods

Method Description
__construct ( $character_set = 'utf-8' )
_getCss ( ) : string Paints the CSS. Add additional styles here.
_htmlEntities ( string $message ) : string Character set adjusted entity conversion.
paintCaseEnd ( string $test_name ) Paints the end of a test case. Will paint the page footer if the stack of tests has unwound.
paintCaseStart ( string $test_name ) Paints the start of a test case. Will also paint the page header and footer if this is the first test. Will stash the size if the first start.
paintError ( string $message ) Paints a PHP error.
paintException ( Exception $exception ) Paints a PHP exception.
paintFail ( string $message ) Paints the test failure with a breadcrumbs trail of the nesting test suites below the top level test.
paintFooter ( string $test_name ) Paints the end of the test with a summary of the passes and failures.
paintFormattedMessage ( string $message ) Paints formatted text such as dumped variables.
paintGroupEnd ( string $test_name ) Paints the end of a group test. Will paint the page footer if the stack of tests has unwound.
paintGroupStart ( string $test_name, integer $size ) Paints the start of a group test. Will also paint the page header and footer if this is the first test. Will stash the size if the first start.
paintHeader ( string $test_name ) Paints the top of the web page setting the title to the name of the starting test.
paintMethodEnd ( string $test_name ) Paints the end of a test method. Will paint the page footer if the stack of tests has unwound.
paintMethodStart ( string $test_name ) Paints the start of a test method.
paintPass ( $message )
paintSkip ( string $message ) Prints the message for skipping tests.
sendNoCacheHeaders ( ) Send the headers necessary to ensure the page is reloaded on every request. Otherwise you could be scratching your head over out of date test data.

Method Details

__construct() public method

public __construct ( $character_set = 'utf-8' )

_getCss() public method

@return string CSS code as text.
public _getCss ( ) : string
return string

_htmlEntities() public method

@param string $message Plain text or Unicode message.
public _htmlEntities ( string $message ) : string
$message string
return string Browser readable message. @access protected

paintCaseEnd() public method

@param string $test_name Name of test that is ending.
public paintCaseEnd ( string $test_name )
$test_name string

paintCaseStart() public method

@param string $test_name Name of test that is starting.
public paintCaseStart ( string $test_name )
$test_name string

paintError() public method

@param string $message Message is ignored.
public paintError ( string $message )
$message string

paintException() public method

@param Exception $exception Exception to display.
public paintException ( Exception $exception )
$exception Exception

paintFail() public method

@param string $message Failure message displayed in the context of the other tests.
public paintFail ( string $message )
$message string

paintFooter() public method

@param string $test_name Name class of test.
public paintFooter ( string $test_name )
$test_name string

paintFormattedMessage() public method

@param string $message Text to show.
public paintFormattedMessage ( string $message )
$message string

paintGroupEnd() public method

@param string $test_name Name of test that is ending.
public paintGroupEnd ( string $test_name )
$test_name string

paintGroupStart() public method

@param string $test_name Name of test that is starting.
public paintGroupStart ( string $test_name, integer $size )
$test_name string
$size integer Number of test cases starting. @access public

paintHeader() public method

@param string $test_name Name class of test.
public paintHeader ( string $test_name )
$test_name string

paintMethodEnd() public method

@param string $test_name Name of test that is ending.
public paintMethodEnd ( string $test_name )
$test_name string

paintMethodStart() public method

@param string $test_name Name of test that is starting.
public paintMethodStart ( string $test_name )
$test_name string

paintPass() public method

public paintPass ( $message )

paintSkip() public method

@param string $message Text of skip condition.
public paintSkip ( string $message )
$message string

sendNoCacheHeaders() public method

@access public
public sendNoCacheHeaders ( )

Property Details

$_charset protected_oe property

protected $_charset