tasks/ext/coverage/CoverageReportTask.php

Show: inherited
Table of Contents

$Id: CoverageReportTask.php 1289 2011-08-19 07:55:37Z 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.

\CoverageReportTask

Package: phing\tasks\ext\coverage

Transforms information in a code coverage database to XML

Parent(s)
\Task < \ProjectComponent
Author
Michiel Rook  
Since
2.1.0  
Version
$Id: CoverageReportTask.php 1289 2011-08-19 07:55:37Z mrook $  

Properties

Propertyprivate  $classpath= 'NULL'

the classpath to use (optional)

Default valueNULLDetails
Type
n/a
Propertyprivate  $geshilanguagespath= '""'

the path to the GeSHi language files (optional)

Default value""Details
Type
n/a
Propertyprivate  $geshipath= '""'

the path to the GeSHi library (optional)

Default value""Details
Type
n/a
Propertyprivate  $outfile= '"coverage.xml"'
Default value"coverage.xml"Details
Type
n/a
Propertyprivate  $transformers= 'array()'
Default valuearray()Details
Type
n/a

Methods

methodpublic__construct( ) : void

methodprotectedaddClassToPackage(  $classname,  $element ) : void

Parameters
Name Type Description
$classname
$element
methodprotectedaddClassToSubpackage( string $classname, \DOMNode $element ) : void

Adds a class to their subpackage

Parameters
Name Type Description
$classname string

The name of the class

$element \DOMNode

The dom node to append to the subpackage element

Details
Author
Benjamin Schultz  
methodprotectedaddSubpackageToPackage( string $packageName, string $subpackageName ) : void

Adds a subpackage to their package

Parameters
Name Type Description
$packageName string

The name of the package

$subpackageName string

The name of the subpackage

Details
Author
Benjamin Schultz  
methodprotectedcalculateStatistics( ) : void

methodpubliccreateClasspath( ) : void

methodpubliccreateReport( ) : void

Generate a report based on the XML created by this task

methodpublicgetDescription( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodprotectedgetPackageElement(  $packageName ) : void

Parameters
Name Type Description
$packageName
methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodprotectedgetSubpackageElement( string $subpackageName ) : \DOMNode | null

Returns the subpackage element

Parameters
Name Type Description
$subpackageName string

The name of the subpackage

Returns
Type Description
\DOMNode | null null when no DOMNode with the given name exists
Details
Author
Benjamin Schultz  
methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodprotectedhighlightSourceFile(  $filename ) : void

Parameters
Name Type Description
$filename
methodpublicinit( ) : void

methodpubliclog( ) : void

methodpublicmain( ) : void

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetClasspath(  $classpath ) : void

Parameters
Name Type Description
$classpath
methodpublicsetDescription( ) : void

methodpublicsetGeshiLanguagesPath(  $path ) : void

Parameters
Name Type Description
$path
methodpublicsetGeshiPath(  $path ) : void

Parameters
Name Type Description
$path
methodpublicsetLocation( ) : void

methodpublicsetOutfile(  $outfile ) : void

Parameters
Name Type Description
$outfile
methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodprotectedstripDiv(  $source ) : void

Parameters
Name Type Description
$source
methodprotectedtransformCoverageInformation( string $filename, array $coverageInformation ) : void

Transforms the coverage information

Parameters
Name Type Description
$filename string

The filename

$coverageInformation array

Array with covergae information

Details
Author
Michiel Rook  
Author
Benjamin Schultz  
methodprotectedtransformSourceFile(  $filename,  $coverageInformation,  $classStartLine = 1 ) : void

Parameters
Name Type Description
$filename
$coverageInformation
$classStartLine
Documentation was generated by DocBlox 0.17.1.