tasks/ext/phpunit/PHPUnitTask.php

Show: inherited
Table of Contents

$Id: PHPUnitTask.php 1353 2011-11-01 14:12:20Z mrook $

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

This software consists of voluntary contributions made by many individuals and is licensed under the LGPL. For more information please see http://phing.info.

\PHPUnitTask

Package: phing\tasks\ext\phpunit

Runs PHPUnit tests.

Parent(s)
\Task < \ProjectComponent
See
\BatchTest  
Author
Michiel Rook  
Since
2.1.0  
Version
$Id: PHPUnitTask.php 1353 2011-11-01 14:12:20Z mrook $  

Properties

Propertyprivate  $batchtests= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $bootstrap= '""'
Default value""Details
Type
n/a
Propertyprivate  $codecoverage= 'null'
Default valuenullDetails
Type
n/a
Propertyprivate  $errorproperty= ''
Details
Type
n/a
Propertyprivate  $excludeGroups= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $failureproperty= ''
Details
Type
n/a
Propertyprivate  $formatters= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $groups= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $haltonerror= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $haltonfailure= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $haltonincomplete= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $haltonskipped= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $incompleteproperty= ''
Details
Type
n/a
Propertyprivate  $printsummary= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $processIsolation= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $skippedproperty= ''
Details
Type
n/a
Propertyprivate  $testfailed= 'false'
Default valuefalseDetails
Type
n/a
Propertyprivate  $testfailuremessage= '""'
Default value""Details
Type
n/a
Propertyprivate  $usecustomerrorhandler= 'true'
Default valuetrueDetails
Type
n/a

Methods

methodpublicaddFormatter( \FormatterElement $fe ) : void

Add a new formatter to all tests of this task.

Parameters
Name Type Description
$fe \FormatterElement

formatter element

methodpubliccreateBatchTest( ) : \BatchTest

Adds a set of tests based on pattern matching.

Returns
Type Description
\BatchTest a new instance of a batch test.
methodprotectedexecute(  $suite ) : void

Parameters
Name Type Description
$suite
Throws
Exception Description
\BuildException
methodprotectedgetDefaultOutput( ) : void

methodpublicgetDescription( ) : void

methodpublicgetHaltonfailure( ) : void

methodpublicgetHaltonincomplete( ) : void

methodpublicgetHaltonskipped( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

Initialize Task.

This method includes any necessary PHPUnit libraries and triggers appropriate error if they cannot be found. This is not done in header because we may want this class to be loaded w/o triggering an error.

methodpubliclog( ) : void

methodpublicmain( ) : void

The main entry point

Throws
Exception Description
\BuildException
methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetBootstrap( string $bootstrap ) : void

Sets the name of a bootstrap file that is run before executing the tests

Parameters
Name Type Description
$bootstrap string

the name of the bootstrap file

methodpublicsetCodecoverage(  $codecoverage ) : void

Parameters
Name Type Description
$codecoverage
methodpublicsetDescription( ) : void

methodpublicsetErrorproperty(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetExcludeGroups(  $excludeGroups ) : void

Parameters
Name Type Description
$excludeGroups
methodpublicsetFailureproperty(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetGroups(  $groups ) : void

Parameters
Name Type Description
$groups
methodpublicsetHaltonerror(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetHaltonfailure(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetHaltonincomplete(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetHaltonskipped(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetIncompleteproperty(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetPrintsummary(  $printsummary ) : void

Parameters
Name Type Description
$printsummary
methodpublicsetProcessIsolation(  $processIsolation ) : void

Parameters
Name Type Description
$processIsolation
methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetSkippedproperty(  $value ) : void

Parameters
Name Type Description
$value
methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetUseCustomErrorHandler(  $usecustomerrorhandler ) : void

Parameters
Name Type Description
$usecustomerrorhandler
Documentation was generated by DocBlox 0.17.1.