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
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

$database= '"coverage.db"'
the filename of the coverage database
"coverage.db"Details- Type
- n/a

$filelists= 'array()'
Any filelists of files containing the .php filenames
array()Details- Type
- n/a
Methods

addFileSet(
\FileSet $fileset
)
:
voidAdd a new fileset containing the .php files to process
| Name | Type | Description |
|---|---|---|
| $fileset | \FileSet | the new fileset containing .php files |

getFilenames(
)
:
arrayIterate over all filesets and return the filename of all files.
| Type | Description |
|---|---|
| array | an array of (basedir, filenames) pairs |

setDatabase(
string $database
)
:
voidSets the filename of the coverage database to use
| Name | Type | Description |
|---|---|---|
| $database | string | the filename of the database |