tasks/ext/phpunit/BatchTest.php

Show: inherited
Table of Contents

\BatchTest

Package: phing\tasks\ext\phpunit

Scans a list of files given by the fileset attribute, extracts valid test cases

Author
Michiel Rook  
Since
2.1.0  
Version
$Id: 4067d915614ff7a864c31f19549bcf6a96c0f92d $  

Properties

Propertyprivate  $classpath= 'NULL'

the classpath to use with Phing::__import() calls

Default valueNULLDetails
Type
n/a
Propertyprivate  $excludeClasses= 'array()'

names of classes to exclude

Default valuearray()Details
Type
n/a
Propertyprivate  $filesets= 'array()'

the list of filesets containing the testcase filename rules

Default valuearray()Details
Type
n/a
Propertyprotected  $name= '"Phing Batchtest"'

name of the batchtest/suite

Default value"Phing Batchtest"Details
Type
n/a
Propertyprivate  $project= 'NULL'

the reference to the project

Default valueNULLDetails
Type
n/a

Methods

methodpublic__construct( \Project $project ) : void

Create a new batchtest instance

Parameters
Name Type Description
$project \Project

the project it depends on.

methodpublicaddFileSet( \FileSet $fileset ) : void

Add a new fileset containing the XML results to aggregate

Parameters
Name Type Description
$fileset \FileSet

the new fileset containing XML results.

methodpublicaddToTestSuite( \PHPUnit_Framework_TestSuite $suite ) : void

Add the tests in this batchtest to a test suite

Parameters
Name Type Description
$suite \PHPUnit_Framework_TestSuite
methodpubliccreateClasspath( ) : void

Creates a new Path object

methodprotectedelements( ) : array

Returns an array of test cases and test suites that are declared by the files included by the filesets

Returns
Type Description
array an array of tests.
methodprivatefilterTests(  $input ) : void

Filters an array of classes, removes all classes that are not test cases or test suites, or classes that are declared abstract

Parameters
Name Type Description
$input
methodpublicgetClasspath( ) : void

Returns the classpath

methodprivategetFilenames( ) : array

Iterate over all filesets and return the filename of all files.

Returns
Type Description
array an array of filenames
methodpublicgetTestSuite( ) : \PHPUnit_Framework_TestSuite

Returns a testsuite containing all the tests in this batch

Returns
Type Description
\PHPUnit_Framework_TestSuite
Details
Deprecated
 
methodprivateisTestCase(  $input ) : void

Checks wheter $input is a PHPUnit Test

Parameters
Name Type Description
$input
methodpublicsetClasspath(  $classpath ) : void

Sets the classpath

Parameters
Name Type Description
$classpath
methodpublicsetExclude(  $exclude ) : void

Sets the classes to exclude

Parameters
Name Type Description
$exclude
methodpublicsetName(  $name ) : void

Sets the name of the batchtest/suite

Parameters
Name Type Description
$name
Documentation was generated by DocBlox 0.18.1.