classes/phing/tasks/ext/coverage/CoverageReportTask.php

\CoverageReportTask

Transforms information in a code coverage database to XML

Use {@link Project#createTask} to register a new Task.

Extends from
\Task
author
Michiel Rook
copyright
2001,2002 THYRELL. All rights reserved
package
phing.tasks.ext.coverage
since
2.1.0
version
$Id: CoverageReportTask.php 1267 2011-08-13 16:19:47Z mrook $

Properties

Propertyprivate  $classpath= 'NULL'

the classpath to use (optional)

Default valueNULLDetails
Type
Propertyprivate  $geshilanguagespath= ''

the path to the GeSHi language files (optional)

Details
Type
Propertyprivate  $geshipath= ''

the path to the GeSHi library (optional)

Details
Type
Propertyprivate  $outfile= 'coverage.xml'
Default valuecoverage.xmlDetails
Type
Propertyprivate  $transformers= 'array'
Default valuearrayDetails
Type

Methods

methodpublic  __construct( ) :
methodprotected  addClassToPackage(  $classname,  $element ) :
Parameters
Name Type Description
$classname
$element
methodprotected  addClassToSubpackage( 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
methodprotected  addSubpackageToPackage( 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
methodprotected  calculateStatistics( ) :
methodpublic  createClasspath( ) :
methodpublic  createReport( ) :
Generate a report based on the XML created by this task
methodprotected  getPackageElement(  $packageName ) :
Parameters
Name Type Description
$packageName
methodprotected  getSubpackageElement( string $subpackageName ) : \DOMNode|null
Returns the subpackage element
Parameters
Name Type Description
$subpackageName string The name of the subpackage
Returns
Type Description
\DOMNodenull
Details
author
Benjamin Schultz
methodprotected  highlightSourceFile(  $filename ) :
Parameters
Name Type Description
$filename
methodpublic  main( ) :
methodpublic  setClasspath(  $classpath ) :
Parameters
Name Type Description
$classpath
methodpublic  setGeshiLanguagesPath(  $path ) :
Parameters
Name Type Description
$path
methodpublic  setGeshiPath(  $path ) :
Parameters
Name Type Description
$path
methodpublic  setOutfile(  $outfile ) :
Parameters
Name Type Description
$outfile
methodprotected  stripDiv(  $source ) :
Parameters
Name Type Description
$source
methodprotected  transformCoverageInformation( 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
methodprotected  transformSourceFile(  $filename,  $coverageInformation,  $classStartLine = 1 ) :
Parameters
Name Type Description
$filename
$coverageInformation
$classStartLine
Documentation was generated by DocBlox 0.13.1.