BatchTest

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

author

Michiel Rook mrook@php.net

version

$Id: 4067d915614ff7a864c31f19549bcf6a96c0f92d $

package

phing.tasks.ext.phpunit

since 2.1.0

Methods

Create a new batchtest instance

__construct(\Project $project) 

Arguments

$project

\Project

Sets the name of the batchtest/suite

setName($name) 

Arguments

$name

Sets the classes to exclude

setExclude($exclude) 

Arguments

$exclude

Sets the classpath

setClasspath(\Path $classpath) 

Arguments

$classpath

\Path

Creates a new Path object

createClasspath() 

Returns the classpath

getClasspath() 

Add a new fileset containing the XML results to aggregate

addFileSet(\FileSet $fileset) 

Arguments

$fileset

\FileSet

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

getFilenames() : array

Response

array

an array of filenames

Checks wheter $input is a PHPUnit Test

isTestCase($input) 

Arguments

$input

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

filterTests($input) 

Arguments

$input

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

elements() : array

Response

array

an array of tests.

Returns a testsuite containing all the tests in this batch

getTestSuite() : \PHPUnit_Framework_TestSuite
deprecated

Response

\PHPUnit_Framework_TestSuite

Add the tests in this batchtest to a test suite

addToTestSuite(\PHPUnit_Framework_TestSuite $suite) 

Arguments

$suite

\PHPUnit_Framework_TestSuite

Properties

the list of filesets containing the testcase filename rules

filesets : 

the reference to the project

project : 

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

classpath : 

names of classes to exclude

excludeClasses : 

name of the batchtest/suite

name :