PHP Класс EclipseReporter, simpletest

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

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

Метод Описание
__construct ( object &$listener, boolean $cc = false ) Reporter to be run inside of Eclipse interface.
createInvoker ( SimpleInvoker &$invoker ) : EclipseInvoker Wraps the test in an output buffer.
createListener ( integer $port, string $host = '127.0.0.1' ) : SimpleSocket Localhost connection from Eclipse.
escapeVal ( string $raw ) : string C style escaping.
getDumper ( ) : SimpleDumper Means to display human readable object comparisons.
paintCaseEnd ( $case ) Drops the name.
paintCaseStart ( $case ) Stashes the test case name for the later failure message.
paintError ( string $message ) Stash the first error. Clicking the test item goes to first error.
paintException ( $exception ) Stash the first exception. Clicking the test item goes to first message.
paintFail ( string $message ) Stash the first failing item. Clicking the test item goes to first fail.
paintFooter ( string $test_name ) We don't display any special footer.
paintGroupEnd ( string $group ) Paints coverage report if enabled.
paintGroupStart ( string $group, integer $size ) Stashes the name of the test suite. Starts test coverage if enabled.
paintHeader ( string $test_name ) We don't display any special header.
paintMethodEnd ( $method ) Only send one message if the test passes, after that suppress the message.
paintMethodStart ( $method ) Paints nothing at the start of a test method, but stash the method name for later.
paintPass ( string $message ) Stash the first passing item. Clicking the test item goes to first pass.

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

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

Reporter to be run inside of Eclipse interface.
public __construct ( object &$listener, boolean $cc = false )
$listener object Eclipse listener (?).
$cc boolean Whether to include test coverage.

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

Wraps the test in an output buffer.
public createInvoker ( SimpleInvoker &$invoker ) : EclipseInvoker
$invoker SimpleInvoker Current test runner.
Результат EclipseInvoker Decorator with output buffering.

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

Localhost connection from Eclipse.
public createListener ( integer $port, string $host = '127.0.0.1' ) : SimpleSocket
$port integer Port to connect to Eclipse.
$host string Normally localhost.
Результат SimpleSocket Connection to Eclipse.

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

C style escaping.
public static escapeVal ( string $raw ) : string
$raw string String with backslashes, quotes and whitespace.
Результат string Replaced with C backslashed tokens.

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

Means to display human readable object comparisons.
public getDumper ( ) : SimpleDumper
Результат SimpleDumper Visual comparer.

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

Drops the name.
public paintCaseEnd ( $case )

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

Stashes the test case name for the later failure message.
public paintCaseStart ( $case )

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

Stash the first error. Clicking the test item goes to first error.
public paintError ( string $message )
$message string Test message, but we only wnat the first.

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

Stash the first exception. Clicking the test item goes to first message.
public paintException ( $exception )

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

Stash the first failing item. Clicking the test item goes to first fail.
public paintFail ( string $message )
$message string Test message, but we only wnat the first.

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

We don't display any special footer.
public paintFooter ( string $test_name )
$test_name string The top level test.

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

Paints coverage report if enabled.
public paintGroupEnd ( string $group )
$group string Name of test or other label.

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

Stashes the name of the test suite. Starts test coverage if enabled.
public paintGroupStart ( string $group, integer $size )
$group string Name of test or other label.
$size integer Number of test cases starting.

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

We don't display any special header.
public paintHeader ( string $test_name )
$test_name string First test top level to start.

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

Only send one message if the test passes, after that suppress the message.
public paintMethodEnd ( $method )

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

Paints nothing at the start of a test method, but stash the method name for later.
public paintMethodStart ( $method )

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

Stash the first passing item. Clicking the test item goes to first pass.
public paintPass ( string $message )
$message string Test message, but we only wnat the first.