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: 9a15437e8ba7eb26f59aa20fd6c10e682b26e697 $ |
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()
createReport()
getDescription() : string
string
The text description of the task
getLocation() : \Location
getOwningTarget() : \Target
getPackageElement( $packageName) : null
null
getProject() : \Project
getRegisterSlot(string $slotName) : \RegisterSlot
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) : array
array
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) : void
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()
throws | |
---|---|
setDescription(string $desc)
string
The text describing the task
setGeshiLanguagesPath( $path)
setGeshiPath( $path)
setLocation(\Location $location)
setOutfile( $outfile)
setOwningTarget(\Target $target)
setProject(\Project $project) : void
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
stripDiv( $source) : string
string
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, integer $classStartLine = 1) : \DOMElement
integer
\DOMElement
outfile :
transformers :
classpath :
geshipath :
geshilanguagespath :
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project