# tasks/ext/phpunit/formatter/PHPUnitResultFormatter.php

$Id: PHPUnitResultFormatter.php 796 2010-06-24 14:36:00Z mrook $

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

This software consists of voluntary contributions made by many individuals and is licensed under the LGPL. For more information please see http://phing.info.

## \PHPUnitResultFormatter
jump to top

Package: phing\tasks\ext\phpunit\formatter

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

Implements
Children
  \SummaryPHPUnitResultFormatter
  \XMLPHPUnitResultFormatter
  \PlainPHPUnitResultFormatter
  \CloverPHPUnitResultFormatter
Author
  Michiel Rook
Since
  2.1.0
Version
  $Id: PHPUnitResultFormatter.php 796 2010-06-24 14:36:00Z mrook $

### Properties

`$errorCounts= 'false'`
Default value `false` Details

Type
  n/a

`$failureCounts= 'false'`
Default value `false` Details

Type
  n/a

`$incompleteCounts= 'false'`
Default value `false` Details

Type
  n/a

`$out= 'NULL'`
Default value `NULL` Details

Type
  n/a

`$project= 'NULL'`
Default value `NULL` Details

Type
  n/a

`$runCounts= 'false'`
Default value `false` Details

Type
  n/a

`$skipCounts= 'false'`
Default value `false` Details

Type
  n/a

`$timers= 'false'`
Default value `false` Details

Type
  n/a

### Methods

`__construct( \PHPUnitTask $parentTask ) : void`

Constructor

Parameters

Name | Type | Description
--- | --- | ---
$parentTask | \PHPUnitTask | Calling Task

`addError( $test, $e, $time ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$test |  |
$e |  |
$time |  |

`addFailure( $test, $e, $time ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$test |  |
$e |  |
$time |  |

`addIncompleteTest( $test, $e, $time ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$test |  |
$e |  |
$time |  |

`addSkippedTest( $test, $e, $time ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$test |  |
$e |  |
$time |  |

`endTest( $test, $time ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$test |  |
$time |  |

`endTestRun( ) : void`

`endTestSuite( $suite ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$suite |  |

`getElapsedTime( ) : void`

`getErrorCount( ) : void`

`getExtension( ) : string`

Returns the extension used for this formatter

Returns

Type | Description
--- | ---
string | the extension

`getFailureCount( ) : void`

`getIncompleteCount( ) : void`

`getMicrotime( ) : void`

`getPreferredOutfile( ) : void`

`getRunCount( ) : void`

`getSkippedCount( ) : void`

`processResult( $result ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$result |  |

`setOutput( $out ) : void`

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

Parameters

Name | Type | Description
--- | --- | ---
$out |  |

`startTest( $test ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$test |  |

`startTestRun( ) : void`

`startTestSuite( $suite ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$suite |  |

Documentation was generated by DocBlox 0.17.1.