PHP 클래스 Mutagenesis\Renderer\Text

상속: extends Mutagenesis\Renderer\RendererAbstract
파일 보기 프로젝트 열기: padraic/mutagenesis 1 사용 예제들

공개 메소드들

메소드 설명
renderOpening ( ) : string Render the opening message (i.e. app and version mostly)
renderPretest ( string $result, string $output ) : string Render Mutagenesis output based on test pass. This is the pretest output, rendered after a first-pass test run to ensure the test suite is in an initial passing state.
renderProgressMark ( boolean $result ) : string Render a progress marker indicating the execution of a single mutation and the successful execution of the related test suite
renderReport ( integer $total, integer $killed, integer $escaped, array $mutations, array $mutantsCaptured, string $output = '' ) : string Render the final Mutagenesis report

보호된 메소드들

메소드 설명
_indentTestOutput ( $output ) : string Utility function to prefix test output lines with an indent and equals sign

메소드 상세

_indentTestOutput() 보호된 메소드

Utility function to prefix test output lines with an indent and equals sign
protected _indentTestOutput ( $output ) : string
리턴 string

renderOpening() 공개 메소드

Render the opening message (i.e. app and version mostly)
public renderOpening ( ) : string
리턴 string

renderPretest() 공개 메소드

Render Mutagenesis output based on test pass. This is the pretest output, rendered after a first-pass test run to ensure the test suite is in an initial passing state.
public renderPretest ( string $result, string $output ) : string
$result string Result state from test adapter
$output string Result output from test adapter
리턴 string Pretest output to echo to client

renderProgressMark() 공개 메소드

Render a progress marker indicating the execution of a single mutation and the successful execution of the related test suite
public renderProgressMark ( boolean $result ) : string
$result boolean Whether unit tests passed (bad) or not (good)
리턴 string

renderReport() 공개 메소드

Render the final Mutagenesis report
public renderReport ( integer $total, integer $killed, integer $escaped, array $mutations, array $mutantsCaptured, string $output = '' ) : string
$total integer Total mutations made and tested
$killed integer Number of mutations that did cause a test failure
$escaped integer Number of mutations that did not cause a test failure
$mutations array
$mutantsCaptured array
$output string Result output from test adapter
리턴 string