Transforms information in a code coverage database to XML
Use {@link Project#createTask} to register a new Task.
author |
Michiel Rook mrook@php.net |
---|---|
version |
$Id: 564bbde3ec5084ed2db570958548af2b9d1c1127 $ |
package |
phing.tasks.ext.coverage |
since | 2.1.0 |
createClasspath()
setGeshiPath($path)
setGeshiLanguagesPath($path)
__construct()
setOutfile($outfile)
createReport()
getPackageElement($packageName)
addClassToPackage($classname, $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
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
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
stripDiv($source)
highlightSourceFile($filename)
transformSourceFile($filename, $coverageInformation, $classStartLine = 1)
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
calculateStatistics()
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
setOwningTarget(\Target $target)
getOwningTarget() : \Target
getTaskName() : string
string
Name of this task
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
getTaskType() : string
string
The type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
setDescription(string $desc)
string
The text describing the task
getDescription() : string
string
The text description of the task
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws |
---|
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
maybeConfigure()
perform()
setProject(\Project $project)
getProject() : \Project
outfile :
transformers :
classpath :
geshipath :
geshilanguagespath :
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project