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: cbf356a8395e116cd6ecddb7f5a822d4b6edf01c $

package

phing.tasks.ext.phpunit.formatter

since 2.1.0

Methods

Constructor

__construct(\PHPUnitTask $parentTask) 

Arguments

$parentTask

\PHPUnitTask

Calling Task

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

setOutput(\Writer $out) 

Arguments

$out

\Writer

Returns the extension used for this formatter

getExtension() : string

Response

string

the extension

getPreferredOutfile

getPreferredOutfile() 

processResult

processResult(\PHPUnit_Framework_TestResult $result) 

Arguments

$result

\PHPUnit_Framework_TestResult

startTestRun

startTestRun() 

endTestRun

endTestRun() 

startTestSuite

startTestSuite(\PHPUnit_Framework_TestSuite $suite) 

Arguments

$suite

\PHPUnit_Framework_TestSuite

endTestSuite

endTestSuite(\PHPUnit_Framework_TestSuite $suite) 

Arguments

$suite

\PHPUnit_Framework_TestSuite

startTest

startTest(\PHPUnit_Framework_Test $test) 

Arguments

$test

\PHPUnit_Framework_Test

endTest

endTest(\PHPUnit_Framework_Test $test, $time) 

Arguments

$test

\PHPUnit_Framework_Test

$time

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

addSkippedTest

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

Arguments

$test

\PHPUnit_Framework_Test

$e

\Exception

$time

getRunCount

getRunCount() 

getFailureCount

getFailureCount() 

getErrorCount

getErrorCount() 

getIncompleteCount

getIncompleteCount() 

getSkippedCount

getSkippedCount() 

getElapsedTime

getElapsedTime() 

getMicrotime

getMicrotime() 

Properties

out

out : 

project

project : 

timers

timers : 

runCounts

runCounts : 

failureCounts

failureCounts : 

errorCounts

errorCounts : 

incompleteCounts

incompleteCounts : 

skipCounts

skipCounts :