classes/phing/tasks/ext/simpletest/SimpleTestTask.php

\SimpleTestTask

Runs SimpleTest tests.

Use {@link Project#createTask} to register a new Task.

Extends from
\Task
author
Michiel Rook
copyright
2001,2002 THYRELL. All rights reserved
package
phing.tasks.ext.simpletest
since
2.2.0
version
$Id: SimpleTestTask.php 1098 2011-05-18 09:26:45Z mrook $

Properties

Propertyprivate  $debug= 'false'
Default valuefalseDetails
Type
Propertyprivate  $errorproperty= ''
Details
Type
Propertyprivate  $failureproperty= ''
Details
Type
Propertyprivate  $formatters= 'array'
Default valuearrayDetails
Type
Propertyprivate  $haltonerror= 'false'
Default valuefalseDetails
Type
Propertyprivate  $haltonfailure= 'false'
Default valuefalseDetails
Type
Propertyprivate  $printsummary= 'false'
Default valuefalseDetails
Type
Propertyprivate  $testfailed= 'false'
Default valuefalseDetails
Type

Methods

methodpublic  addFileSet( \FileSet $fileset ) :
Add a new fileset containing the XML results to aggregate
Parameters
Name Type Description
$fileset \FileSet the new fileset containing XML results.
methodpublic  addFormatter( \SimpleTestFormatterElement $fe ) :
Add a new formatter to all tests of this task.
Parameters
Name Type Description
$fe \SimpleTestFormatterElement formatter element
methodprivate  execute(  $suite ) :
Parameters
Name Type Description
$suite
methodpublic  getDebug( ) :
methodprivate  getDefaultOutput( ) :
methodprivate  getFilenames( ) : array
Iterate over all filesets and return the filename of all files that end with .php.
Returns
Type Description
array
methodpublic  init( ) :
Initialize Task.

This method includes any necessary SimpleTest 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.

methodpublic  main( ) :
The main entry point
Details
throws
methodpublic  setDebug(  $debug ) :
Parameters
Name Type Description
$debug
methodpublic  setErrorproperty(  $value ) :
Parameters
Name Type Description
$value
methodpublic  setFailureproperty(  $value ) :
Parameters
Name Type Description
$value
methodpublic  setHaltonerror(  $value ) :
Parameters
Name Type Description
$value
methodpublic  setHaltonfailure(  $value ) :
Parameters
Name Type Description
$value
methodpublic  setPrintsummary(  $printsummary ) :
Parameters
Name Type Description
$printsummary
Documentation was generated by DocBlox 0.13.1.