PHP 클래스 MultipleReporter, simpletest

@package SimpleTest
파일 보기 프로젝트 열기: simpletest/simpletest 1 사용 예제들

공개 메소드들

메소드 설명
attachReporter ( SimpleScorer $reporter ) Adds a reporter to the subscriber list.
createInvoker ( SimpleInvoker $invoker ) : SimpleInvoker Every reporter gets a chance to wrap the invoker.
getDumper ( ) : SimpleDumper Gets the formatter for privateiables and other small generic data items.
getStatus ( ) : boolean Accessor for current status.
makeDry ( boolean $is_dry = true ) Signals that the next evaluation will be a dry run.
paintCaseEnd ( string $test_name ) Paints the end of a test case.
paintCaseStart ( string $test_name ) Paints the start of a test case.
paintError ( string $message ) Chains to the wrapped reporter.
paintException ( Exception $exception ) Chains to the wrapped reporter.
paintFail ( string $message ) Chains to the wrapped reporter.
paintFormattedMessage ( string $message ) Chains to the wrapped reporter.
paintGroupEnd ( string $test_name ) Paints the end of a group test.
paintGroupStart ( string $test_name, integer $size ) Paints the start of a group test.
paintMessage ( string $message ) Chains to the wrapped reporter.
paintMethodEnd ( string $test_name ) Paints the end of a test method.
paintMethodStart ( string $test_name ) Paints the start of a test method.
paintPass ( string $message ) Chains to the wrapped reporter.
paintSignal ( string $type, mixed $payload ) : boolean Chains to the wrapped reporter.
paintSkip ( string $message ) Prints the message for skipping tests.
shouldInvoke ( string $test_case_name, string $method ) The reporter has a veto on what should be run.

메소드 상세

attachReporter() 공개 메소드

Adds a reporter to the subscriber list.
public attachReporter ( SimpleScorer $reporter )
$reporter SimpleScorer Reporter to receive events.

createInvoker() 공개 메소드

Every reporter gets a chance to wrap the invoker.
public createInvoker ( SimpleInvoker $invoker ) : SimpleInvoker
$invoker SimpleInvoker Individual test runner.
리턴 SimpleInvoker Wrapped test runner.

getDumper() 공개 메소드

Gets the formatter for privateiables and other small generic data items.
public getDumper ( ) : SimpleDumper
리턴 SimpleDumper Formatter.

getStatus() 공개 메소드

Will be false if there have been any failures or exceptions. If any reporter reports a failure, the whole suite fails.
public getStatus ( ) : boolean
리턴 boolean True if no failures.

makeDry() 공개 메소드

That is, the structure events will be recorded, but no tests will be run.
public makeDry ( boolean $is_dry = true )
$is_dry boolean Dry run if true.

paintCaseEnd() 공개 메소드

Paints the end of a test case.
public paintCaseEnd ( string $test_name )
$test_name string Name of test or other label.

paintCaseStart() 공개 메소드

Paints the start of a test case.
public paintCaseStart ( string $test_name )
$test_name string Name of test or other label.

paintError() 공개 메소드

Chains to the wrapped reporter.
public paintError ( string $message )
$message string Text of error formatted by the test case.

paintException() 공개 메소드

Chains to the wrapped reporter.
public paintException ( Exception $exception )
$exception Exception Exception to display.

paintFail() 공개 메소드

Chains to the wrapped reporter.
public paintFail ( string $message )
$message string Message is ignored.

paintFormattedMessage() 공개 메소드

Chains to the wrapped reporter.
public paintFormattedMessage ( string $message )
$message string Text to display.

paintGroupEnd() 공개 메소드

Paints the end of a group test.
public paintGroupEnd ( string $test_name )
$test_name string Name of test or other label.

paintGroupStart() 공개 메소드

Paints the start of a group test.
public paintGroupStart ( string $test_name, integer $size )
$test_name string Name of test or other label.
$size integer Number of test cases starting.

paintMessage() 공개 메소드

Chains to the wrapped reporter.
public paintMessage ( string $message )
$message string Text to display.

paintMethodEnd() 공개 메소드

Paints the end of a test method.
public paintMethodEnd ( string $test_name )
$test_name string Name of test or other label.

paintMethodStart() 공개 메소드

Paints the start of a test method.
public paintMethodStart ( string $test_name )
$test_name string Name of test or other label.

paintPass() 공개 메소드

Chains to the wrapped reporter.
public paintPass ( string $message )
$message string Message is ignored.

paintSignal() 공개 메소드

Chains to the wrapped reporter.
public paintSignal ( string $type, mixed $payload ) : boolean
$type string Event type as text.
$payload mixed Message or object.
리턴 boolean Should return false if this type of signal should fail the test suite.

paintSkip() 공개 메소드

Prints the message for skipping tests.
public paintSkip ( string $message )
$message string Text of skip condition.

shouldInvoke() 공개 메소드

It requires all reporters to want to run the method.
public shouldInvoke ( string $test_case_name, string $method )
$test_case_name string name of test case.
$method string Name of test method.