PHP 클래스 EclipseReporter, simpletest

상속: extends SimpleScorer
파일 보기 프로젝트 열기: simpletest/simpletest 1 사용 예제들

공개 메소드들

메소드 설명
__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.