phing-tasks-ext-phpunit-formatter

# Class: PHPUnitResultFormatter Source Location: /tasks/ext/phpunit/formatter/PHPUnitResultFormatter.php
### Class Overview
This abstract class describes classes that format the results of a PHPUnit2 testrun. #### Author(s): Michiel Rook <michiel.rook@gmail.com> #### Version: $Id: PHPUnitResultFormatter.php -1 $ | ### Variables $out $project | ### Methods addError addFailure addIncompleteTest addSkippedTest endTest endTestRun endTestSuite getElapsedTime getErrorCount getExtension getFailureCount getIncompleteCount getPreferredOutfile getRunCount getSkippedCount setOutput setProject startTest startTestRun startTestSuite
### Child classes: SummaryPHPUnitResultFormatter Prints short summary output of the test to Phing's logging system. XMLPHPUnitResultFormatter Prints XML output of the test to a specified Writer PlainPHPUnitResultFormatter Prints plain text output of the test to a specified Writer.
### Class Details [line 34] This abstract class describes classes that format the results of a PHPUnit2 testrun. #### Tags:
author: | Michiel Rook <michiel.rook@gmail.com>
version: | $Id: PHPUnitResultFormatter.php -1 $
abstract: |
since: | 2.1.0
[ Top ] ### Class Variables #### $out = NULL [line 36] #### Tags:
access: | protected
Type: | mixed
[ Top ] #### $project = NULL [line 38] #### Tags:
access: | protected
Type: | mixed
[ Top ] ### Class Methods ### method addError [line 138]
`void addError( $test, $e, $time)`
Overridden in child classes as: XMLPHPUnitResultFormatter::addError() PlainPHPUnitResultFormatter::addError() #### Parameters:
PHPUnit_Framework_Test | $test |
Exception | $e |
| $time |
[ Top ] ### method addFailure [line 143]
`void addFailure( $test, $e, $time)`
Overridden in child classes as: XMLPHPUnitResultFormatter::addFailure() PlainPHPUnitResultFormatter::addFailure() #### Parameters:
PHPUnit_Framework_Test | $test |
PHPUnit_Framework_AssertionFailedError | $e |
| $time |
[ Top ] ### method addIncompleteTest [line 148]
`void addIncompleteTest( $test, $e, $time)`
Overridden in child classes as: XMLPHPUnitResultFormatter::addIncompleteTest() PlainPHPUnitResultFormatter::addIncompleteTest() #### Parameters:
PHPUnit_Framework_Test | $test |
Exception | $e |
| $time |
[ Top ] ### method addSkippedTest [line 153]
`void addSkippedTest( $test, $e, $time)`
Overridden in child classes as: PlainPHPUnitResultFormatter::addSkippedTest() #### Parameters:
PHPUnit_Framework_Test | $test |
Exception | $e |
| $time |
[ Top ] ### method endTest [line 134]
`void endTest( $test, $time)`
Overridden in child classes as: XMLPHPUnitResultFormatter::endTest() #### Parameters:
PHPUnit_Framework_Test | $test |
| $time |
[ Top ] ### method endTestRun [line 95]
`void endTestRun( )`
Overridden in child classes as: XMLPHPUnitResultFormatter::endTestRun() PlainPHPUnitResultFormatter::endTestRun() [ Top ] ### method endTestSuite [line 109]
`void endTestSuite( $suite)`
Overridden in child classes as: SummaryPHPUnitResultFormatter::endTestSuite() XMLPHPUnitResultFormatter::endTestSuite() PlainPHPUnitResultFormatter::endTestSuite() #### Parameters:
PHPUnit_Framework_TestSuite | $suite |
[ Top ] ### method getElapsedTime [line 183]
`void getElapsedTime( )`
[ Top ] ### method getErrorCount [line 168]
`void getErrorCount( )`
[ Top ] ### method getExtension [line 65]
`string getExtension( )`
Returns the extension used for this formatter #### Tags:
return: | the extension
Overridden in child classes as: SummaryPHPUnitResultFormatter::getExtension() XMLPHPUnitResultFormatter::getExtension() PlainPHPUnitResultFormatter::getExtension() [ Top ] ### method getFailureCount [line 163]
`void getFailureCount( )`
[ Top ] ### method getIncompleteCount [line 173]
`void getIncompleteCount( )`
[ Top ] ### method getPreferredOutfile [line 80]
`void getPreferredOutfile( )`
Overridden in child classes as: XMLPHPUnitResultFormatter::getPreferredOutfile() PlainPHPUnitResultFormatter::getPreferredOutfile() [ Top ] ### method getRunCount [line 158]
`void getRunCount( )`
[ Top ] ### method getSkippedCount [line 178]
`void getSkippedCount( )`
[ Top ] ### method setOutput [line 55]
`void setOutput( $out)`
Sets the writer the formatter is supposed to write its results to. #### Parameters:
Writer | $out |
[ Top ] ### method setProject [line 75]
`void setProject( $project)`
Sets the project #### Parameters:
Project | $project | the project
[ Top ] ### method startTest [line 129]
`void startTest( $test)`
Overridden in child classes as: XMLPHPUnitResultFormatter::startTest() #### Parameters:
PHPUnit_Framework_Test | $test |
[ Top ] ### method startTestRun [line 85]
`void startTestRun( )`
[ Top ] ### method startTestSuite [line 99]
`void startTestSuite( $suite)`
Overridden in child classes as: XMLPHPUnitResultFormatter::startTestSuite() PlainPHPUnitResultFormatter::startTestSuite() #### Parameters:
PHPUnit_Framework_TestSuite | $suite |
[ Top ] Documentation generated on Mon, 19 Oct 2009 10:51:42 +0200 by phpDocumentor 1.4.3