PHP 클래스 PHPUnit_TextUI_ResultPrinter, phpunit

저자: Sebastian Bergmann ([email protected])
상속: extends PHPUnit_Util_Printer, implements PHPUnit_Framework_TestListener
파일 보기 프로젝트 열기: sebastianbergmann/phpunit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$colors boolean
$column integer
$debug boolean
$lastTestFailed boolean
$maxColumn integer
$numAssertions integer
$numTests integer
$numTestsRun integer
$numTestsWidth integer
$verbose boolean

공개 메소드들

메소드 설명
__construct ( mixed $out = null, boolean $verbose = false, string $colors = self::COLOR_DEFAULT, boolean $debug = false, integer | string $numberOfColumns = 80, boolean $reverse = false ) Constructor.
addError ( PHPUnit_Framework_Test $test, Exception $e, float $time ) An error occurred.
addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time ) A failure occurred.
addIncompleteTest ( PHPUnit_Framework_Test $test, Exception $e, float $time ) Incomplete test.
addRiskyTest ( PHPUnit_Framework_Test $test, Exception $e, float $time ) Risky test.
addSkippedTest ( PHPUnit_Framework_Test $test, Exception $e, float $time ) Skipped test.
addWarning ( PHPUnit_Framework_Test $test, PHPUnit_Framework_Warning $e, float $time ) A warning occurred.
endTest ( PHPUnit_Framework_Test $test, float $time ) A test ended.
endTestSuite ( PHPUnit_Framework_TestSuite $suite ) A testsuite ended.
printResult ( PHPUnit_Framework_TestResult $result )
printWaitPrompt ( )
startTest ( PHPUnit_Framework_Test $test ) A test started.
startTestSuite ( PHPUnit_Framework_TestSuite $suite ) A testsuite started.

보호된 메소드들

메소드 설명
formatWithColor ( string $color, string $buffer ) : string Formats a buffer with a specified ANSI color sequence if colors are enabled.
printDefect ( PHPUnit_Framework_TestFailure $defect, integer $count )
printDefectHeader ( PHPUnit_Framework_TestFailure $defect, integer $count )
printDefectTrace ( PHPUnit_Framework_TestFailure $defect )
printDefects ( array $defects, string $type )
printErrors ( PHPUnit_Framework_TestResult $result )
printFailures ( PHPUnit_Framework_TestResult $result )
printFooter ( PHPUnit_Framework_TestResult $result )
printHeader ( )
printIncompletes ( PHPUnit_Framework_TestResult $result )
printRisky ( PHPUnit_Framework_TestResult $result )
printSkipped ( PHPUnit_Framework_TestResult $result )
printWarnings ( PHPUnit_Framework_TestResult $result )
writeNewLine ( )
writeProgress ( string $progress )
writeProgressWithColor ( string $color, string $buffer ) Writes progress with a color sequence if colors are enabled.
writeWithColor ( string $color, string $buffer, boolean $lf = true ) Writes a buffer out with a color sequence if colors are enabled.

비공개 메소드들

메소드 설명
writeCountString ( integer $count, string $name, string $color, boolean $always = false )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( mixed $out = null, boolean $verbose = false, string $colors = self::COLOR_DEFAULT, boolean $debug = false, integer | string $numberOfColumns = 80, boolean $reverse = false )
$out mixed
$verbose boolean
$colors string
$debug boolean
$numberOfColumns integer | string
$reverse boolean

addError() 공개 메소드

An error occurred.
public addError ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float

addFailure() 공개 메소드

A failure occurred.
public addFailure ( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, float $time )
$test PHPUnit_Framework_Test
$e PHPUnit_Framework_AssertionFailedError
$time float

addIncompleteTest() 공개 메소드

Incomplete test.
public addIncompleteTest ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float

addRiskyTest() 공개 메소드

Risky test.
public addRiskyTest ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float

addSkippedTest() 공개 메소드

Skipped test.
public addSkippedTest ( PHPUnit_Framework_Test $test, Exception $e, float $time )
$test PHPUnit_Framework_Test
$e Exception
$time float

addWarning() 공개 메소드

A warning occurred.
public addWarning ( PHPUnit_Framework_Test $test, PHPUnit_Framework_Warning $e, float $time )
$test PHPUnit_Framework_Test
$e PHPUnit_Framework_Warning
$time float

endTest() 공개 메소드

A test ended.
public endTest ( PHPUnit_Framework_Test $test, float $time )
$test PHPUnit_Framework_Test
$time float

endTestSuite() 공개 메소드

A testsuite ended.
public endTestSuite ( PHPUnit_Framework_TestSuite $suite )
$suite PHPUnit_Framework_TestSuite

formatWithColor() 보호된 메소드

Formats a buffer with a specified ANSI color sequence if colors are enabled.
protected formatWithColor ( string $color, string $buffer ) : string
$color string
$buffer string
리턴 string

printDefect() 보호된 메소드

protected printDefect ( PHPUnit_Framework_TestFailure $defect, integer $count )
$defect PHPUnit_Framework_TestFailure
$count integer

printDefectHeader() 보호된 메소드

protected printDefectHeader ( PHPUnit_Framework_TestFailure $defect, integer $count )
$defect PHPUnit_Framework_TestFailure
$count integer

printDefectTrace() 보호된 메소드

protected printDefectTrace ( PHPUnit_Framework_TestFailure $defect )
$defect PHPUnit_Framework_TestFailure

printDefects() 보호된 메소드

protected printDefects ( array $defects, string $type )
$defects array
$type string

printErrors() 보호된 메소드

protected printErrors ( PHPUnit_Framework_TestResult $result )
$result PHPUnit_Framework_TestResult

printFailures() 보호된 메소드

protected printFailures ( PHPUnit_Framework_TestResult $result )
$result PHPUnit_Framework_TestResult

printFooter() 보호된 메소드

protected printFooter ( PHPUnit_Framework_TestResult $result )
$result PHPUnit_Framework_TestResult

printHeader() 보호된 메소드

protected printHeader ( )

printIncompletes() 보호된 메소드

protected printIncompletes ( PHPUnit_Framework_TestResult $result )
$result PHPUnit_Framework_TestResult

printResult() 공개 메소드

public printResult ( PHPUnit_Framework_TestResult $result )
$result PHPUnit_Framework_TestResult

printRisky() 보호된 메소드

protected printRisky ( PHPUnit_Framework_TestResult $result )
$result PHPUnit_Framework_TestResult

printSkipped() 보호된 메소드

protected printSkipped ( PHPUnit_Framework_TestResult $result )
$result PHPUnit_Framework_TestResult

printWaitPrompt() 공개 메소드

public printWaitPrompt ( )

printWarnings() 보호된 메소드

protected printWarnings ( PHPUnit_Framework_TestResult $result )
$result PHPUnit_Framework_TestResult

startTest() 공개 메소드

A test started.
public startTest ( PHPUnit_Framework_Test $test )
$test PHPUnit_Framework_Test

startTestSuite() 공개 메소드

A testsuite started.
public startTestSuite ( PHPUnit_Framework_TestSuite $suite )
$suite PHPUnit_Framework_TestSuite

writeNewLine() 보호된 메소드

protected writeNewLine ( )

writeProgress() 보호된 메소드

protected writeProgress ( string $progress )
$progress string

writeProgressWithColor() 보호된 메소드

Writes progress with a color sequence if colors are enabled.
protected writeProgressWithColor ( string $color, string $buffer )
$color string
$buffer string

writeWithColor() 보호된 메소드

Writes a buffer out with a color sequence if colors are enabled.
protected writeWithColor ( string $color, string $buffer, boolean $lf = true )
$color string
$buffer string
$lf boolean

프로퍼티 상세

$colors 보호되어 있는 프로퍼티

protected bool $colors
리턴 boolean

$column 보호되어 있는 프로퍼티

protected int $column
리턴 integer

$debug 보호되어 있는 프로퍼티

protected bool $debug
리턴 boolean

$lastTestFailed 보호되어 있는 프로퍼티

protected bool $lastTestFailed
리턴 boolean

$maxColumn 보호되어 있는 프로퍼티

protected int $maxColumn
리턴 integer

$numAssertions 보호되어 있는 프로퍼티

protected int $numAssertions
리턴 integer

$numTests 보호되어 있는 프로퍼티

protected int $numTests
리턴 integer

$numTestsRun 보호되어 있는 프로퍼티

protected int $numTestsRun
리턴 integer

$numTestsWidth 보호되어 있는 프로퍼티

protected int $numTestsWidth
리턴 integer

$verbose 보호되어 있는 프로퍼티

protected bool $verbose
리턴 boolean