Transforms information in a code coverage database to XML
Use \Project#createTask to register a new Task.
author |
Michiel Rook mrook@php.net |
---|---|
version |
$Id: 75a525ac4339232dbb13ea210119ee289e3dcc67 $ |
package |
phing.tasks.ext.coverage |
since | 2.1.0 |
__construct()
addClassToPackage( $packageName, $element)
addClassToSubpackage(string $classname, \DOMNode $element) : void
author |
Benjamin Schultz bschultz@proqrent.de |
---|
string
The name of the class
\DOMNode
The dom node to append to the subpackage element
addSubpackageToPackage(string $packageName, string $subpackageName) : void
author |
Benjamin Schultz bschultz@proqrent.de |
---|
string
The name of the package
string
The name of the subpackage
calculateStatistics()
createClasspath()
createReport()
getDescription() : string
string
The text description of the task
getLocation() : \Location
getOwningTarget() : \Target
getPackageElement( $packageName)
getProject() : \Project
getRegisterSlot(string $slotName)
string
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getSubpackageElement(string $subpackageName) : \DOMNode|null
author |
Benjamin Schultz bschultz@proqrent.de |
---|
string
The name of the subpackage
\DOMNode|null
null when no DOMNode with the given name exists
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
highlightSourceFile( $filename)
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform()
setDescription(string $desc)
string
The text describing the task
setGeshiLanguagesPath( $path)
setGeshiPath( $path)
setLocation(\Location $location)
setOutfile( $outfile)
setOwningTarget(\Target $target)
setProject(\Project $project)
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
stripDiv( $source)
transformCoverageInformation(string $filename, array $coverageInformation) : void
author |
Michiel Rook mrook@php.net Benjamin Schultz bschultz@proqrent.de |
---|
string
The filename
array
Array with covergae information
transformSourceFile( $filename, $coverageInformation, $classStartLine = 1)
outfile :
transformers :
classpath :
geshipath :
geshilanguagespath :
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project