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

$Id: CloverPHPUnitResultFormatter.php 1342 2011-11-01 08:06:50Z 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.

## \CloverPHPUnitResultFormatter
jump to top

Package: phing\tasks\ext\formatter

Prints Clover XML output of the test

Parent(s)
  \PHPUnitResultFormatter
Author
  Michiel Rook
Since
  2.4.0
Version
  $Id: CloverPHPUnitResultFormatter.php 1342 2011-11-01 08:06:50Z mrook $

### Properties

`$out= 'NULL'`
inherited Inherited from: \PHPUnitResultFormatter::$out
Default value `NULL` Details

Type
Inherited_from
  \PHPUnitResultFormatter::$out

`$project= 'NULL'`
inherited Inherited from: \PHPUnitResultFormatter::$project
Default value `NULL` Details

Type
Inherited_from
  \PHPUnitResultFormatter::$project

`\PHPUnit_Framework_TestResult $result= 'NULL'`

Default value `NULL` Details

Type
  \PHPUnit_Framework_TestResult

`string $version= 'NULL'`

PHPUnit version

Default value `NULL` Details

Type
  string

### Methods

`__construct( \PHPUnitTask $parentTask ) : void`

Constructor

Parameters

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

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

Inherited from: \PHPUnitResultFormatter::addError()
Parameters

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

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

Inherited from: \PHPUnitResultFormatter::addFailure()
Parameters

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

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

Inherited from: \PHPUnitResultFormatter::addIncompleteTest()
Parameters

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

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

Inherited from: \PHPUnitResultFormatter::addSkippedTest()
Parameters

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

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

Inherited from: \PHPUnitResultFormatter::endTest()
Parameters

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

`endTestRun( ) : void`

`endTestSuite( $suite ) : void`
inherited

Inherited from: \PHPUnitResultFormatter::endTestSuite()
Parameters

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

`getElapsedTime( ) : void`
inherited

Inherited from: \PHPUnitResultFormatter::getElapsedTime()
`getErrorCount( ) : void`
inherited

Inherited from: \PHPUnitResultFormatter::getErrorCount()
`getExtension( ) : string`

Returns the extension used for this formatter

Returns

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

`getFailureCount( ) : void`
inherited

Inherited from: \PHPUnitResultFormatter::getFailureCount()
`getIncompleteCount( ) : void`
inherited

Inherited from: \PHPUnitResultFormatter::getIncompleteCount()
`getPreferredOutfile( ) : void`

`getRunCount( ) : void`
inherited

Inherited from: \PHPUnitResultFormatter::getRunCount()
`getSkippedCount( ) : void`
inherited

Inherited from: \PHPUnitResultFormatter::getSkippedCount()
`processResult( $result ) : void`

Parameters

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

`setOutput( $out ) : void`
inherited

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

Inherited from: \PHPUnitResultFormatter::setOutput()
Parameters

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

`startTest( $test ) : void`
inherited

Inherited from: \PHPUnitResultFormatter::startTest()
Parameters

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

`startTestRun( ) : void`
inherited

Inherited from: \PHPUnitResultFormatter::startTestRun()
`startTestSuite( $suite ) : void`
inherited

Inherited from: \PHPUnitResultFormatter::startTestSuite()
Parameters

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

Documentation was generated by DocBlox 0.15.1.