PHP Класс MyReporter, 68kb

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

Защищенные свойства (Protected)

Свойство Тип Описание
$_charset

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

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

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

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

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

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

@return string CSS code as text.
public _getCss ( ) : string
Результат string

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

@param string $message Plain text or Unicode message.
public _htmlEntities ( string $message ) : string
$message string
Результат string Browser readable message. @access protected

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

public paintPass ( $message )

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

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

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

@access public
public sendNoCacheHeaders ( )

Описание свойств

$_charset защищенное свойство

protected $_charset