# tasks/ext/coverage/CoverageSetupTask.php

$Id: CoverageSetupTask.php 1354 2011-11-01 14:12:42Z 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.

## \CoverageSetupTask
jump to top

Package: phing\tasks\ext\coverage

Initializes a code coverage database

Parent(s)
  \Task < \ProjectComponent
Author
  Michiel Rook
Since
  2.1.0
Version
  $Id: CoverageSetupTask.php 1354 2011-11-01 14:12:42Z mrook $

### Properties

`$classpath= 'NULL'`

the classpath to use (optional)

Default value `NULL` Details

Type
  n/a

`$database= '"coverage.db"'`

the filename of the coverage database

Default value`"coverage.db"`Details

Type
  n/a

`$filelists= 'array()'`

Any filelists of files containing the .php filenames

Default value `array()`Details

Type
  n/a

`$filesets= 'array()'`

the list of filesets containing the .php filename rules

Default value `array()`Details

Type
  n/a

### Methods

`addFileSet( \FileSet $fileset ) : void`

Add a new fileset containing the .php files to process

Parameters

Name | Type | Description
--- | --- | ---
$fileset | \FileSet | the new fileset containing .php files

`createClasspath( ) : void`

`createFileList( ) : \FileList`

Supports embedded element.

Returns

Type | Description
--- | ---
\FileList |

`getDescription( ) : void`

`getFilenames( ) : array`

Iterate over all filesets and return the filename of all files.

Returns

Type | Description
--- | ---
array | an array of (basedir, filenames) pairs

`getLocation( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getRegisterSlot( ) : void`

`getRuntimeConfigurableWrapper( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`init( ) : void`

`log( ) : void`

`main( ) : void`

`maybeConfigure( ) : void`

`perform( ) : void`

`setClasspath( $classpath ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$classpath |  |

`setDatabase( string $database ) : void`

Sets the filename of the coverage database to use

Parameters

Name | Type | Description
--- | --- | ---
$database | string | the filename of the database

`setDescription( ) : void`

`setLocation( ) : void`

`setOwningTarget( ) : void`

`setProject( ) : void`

`setRuntimeConfigurableWrapper( ) : void`

`setTaskName( ) : void`

`setTaskType( ) : void`

Documentation was generated by DocBlox 0.17.1.