Runs PHPUnit tests.
Use \Project#createTask to register a new Task.
author |
Michiel Rook mrook@php.net |
---|---|
version |
$Id: a2446804ba6d51c0b63a50a7d90e77c52d2dae37 $ |
package |
phing.tasks.ext.phpunit |
see | |
since | 2.1.0 |
addFormatter(\FormatterElement $fe)
appendBatchTestToTestSuite(\BatchTest $batchTest, \PHPUnit_Framework_TestSuite $suite)
createBatchTest() : \BatchTest
execute( $suite)
getDescription() : string
string
The text description of the task
getHaltonfailure() : boolean
boolean
getHaltonincomplete() : boolean
boolean
getHaltonskipped() : boolean
boolean
getLocation() : \Location
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName) : \RegisterSlot
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
handlePHPUnitConfiguration( $configuration) : array
throws |
---|
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 | |
---|---|
loadPHPUnit()
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 | |
---|---|
setBootstrap(string $bootstrap)
string
the name of the bootstrap file
setCodecoverage( $codecoverage)
setDescription(string $desc)
string
The text describing the task
setErrorproperty( $value)
setExcludeGroups( $excludeGroups)
setFailureproperty( $value)
setGroups( $groups)
setHaltonerror( $value)
setHaltonfailure( $value)
setHaltonincomplete( $value)
setHaltonskipped( $value)
setIncompleteproperty( $value)
setLocation(\Location $location)
setOwningTarget(\Target $target)
setPharLocation(string $pharLocation)
string
setPrintsummary( $printsummary)
setProcessIsolation( $processIsolation)
setProject(\Project $project) : void
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setSkippedproperty( $value)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
setUseCustomErrorHandler( $usecustomerrorhandler)
batchtests :
formatters :
bootstrap :
haltonerror :
haltonfailure :
haltonincomplete :
haltonskipped :
errorproperty :
failureproperty :
incompleteproperty :
skippedproperty :
printsummary :
testfailed :
codecoverage :
groups :
excludeGroups :
processIsolation :
usecustomerrorhandler :
pharLocation : string
var |
---|
string
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project