PHPUnitResultFormatter

Implements \PHPUnit_Framework_TestListener

This abstract class describes classes that format the results of a PHPUnit testrun.

author

Michiel Rook mrook@php.net

version

$Id: aa9b6791e2182f6320d5ed3d375d42532039ac4e $

package

phing.tasks.ext.phpunit.formatter

since 2.1.0

Methods

Constructor

__construct(\PHPUnitTask $parentTask) 

Arguments

$parentTask

\PHPUnitTask

Calling Task

addError

addError(\PHPUnit_Framework_Test $test, \Exception $e,  $time) 

Arguments

$test

\PHPUnit_Framework_Test

$e

\Exception

$time

addFailure

addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e,  $time) 

Arguments

$test

\PHPUnit_Framework_Test

$e

\PHPUnit_Framework_AssertionFailedError

$time

addIncompleteTest

addIncompleteTest(\PHPUnit_Framework_Test $test, \Exception $e,  $time) 

Arguments

$test

\PHPUnit_Framework_Test

$e

\Exception

$time

addRiskyTest

addRiskyTest(\PHPUnit_Framework_Test $test, \Exception $e,  $time) 

Arguments

$test

\PHPUnit_Framework_Test

$e

\Exception

$time

addSkippedTest

addSkippedTest(\PHPUnit_Framework_Test $test, \Exception $e,  $time) 

Arguments

$test

\PHPUnit_Framework_Test

$e

\Exception

$time

endTest

endTest(\PHPUnit_Framework_Test $test,  $time) 

Arguments

$test

\PHPUnit_Framework_Test

$time

endTestRun

endTestRun() 

endTestSuite

endTestSuite(\PHPUnit_Framework_TestSuite $suite) 

Arguments

$suite

\PHPUnit_Framework_TestSuite

getElapsedTime

getElapsedTime() 

getErrorCount

getErrorCount() 

Returns the extension used for this formatter

getExtension() : string

Response

string

the extension

getFailureCount

getFailureCount() 

getIncompleteCount

getIncompleteCount() 

getMicrotime

getMicrotime() 

getPreferredOutfile

getPreferredOutfile() 

getRunCount

getRunCount() 

getSkippedCount

getSkippedCount() 

processResult

processResult(\PHPUnit_Framework_TestResult $result) 

Arguments

$result

\PHPUnit_Framework_TestResult

Sets the writer the formatter is supposed to write its results to.

setOutput(\Writer $out) 

Arguments

$out

\Writer

startTest

startTest(\PHPUnit_Framework_Test $test) 

Arguments

$test

\PHPUnit_Framework_Test

startTestRun

startTestRun() 

startTestSuite

startTestSuite(\PHPUnit_Framework_TestSuite $suite) 

Arguments

$suite

\PHPUnit_Framework_TestSuite

Properties

out

out : 

Type(s)

project

project : 

Type(s)

timers

timers : 

Type(s)

runCounts

runCounts : 

Type(s)

failureCounts

failureCounts : 

Type(s)

errorCounts

errorCounts : 

Type(s)

incompleteCounts

incompleteCounts : 

Type(s)

skipCounts

skipCounts : 

Type(s)