tasks/ext/phpunit/BatchTest.php
\BatchTest
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

$classpath= 'NULL'
the classpath to use with Phing::__import() calls
NULLDetails- Type
- n/a

$filesets= 'array()'
the list of filesets containing the testcase filename rules
array()Details- Type
- n/a

$name= '"Phing Batchtest"'
name of the batchtest/suite
"Phing Batchtest"Details- Type
- n/a
Methods

__construct(
\Project $project
)
:
voidCreate a new batchtest instance
| Name | Type | Description |
|---|---|---|
| $project | \Project | the project it depends on. |

addFileSet(
\FileSet $fileset
)
:
voidAdd a new fileset containing the XML results to aggregate
| Name | Type | Description |
|---|---|---|
| $fileset | \FileSet | the new fileset containing XML results. |

addToTestSuite(
\PHPUnit_Framework_TestSuite $suite
)
:
voidAdd the tests in this batchtest to a test suite
| Name | Type | Description |
|---|---|---|
| $suite | \PHPUnit_Framework_TestSuite |

elements(
)
:
arrayReturns an array of test cases and test suites that are declared by the files included by the filesets
| Type | Description |
|---|---|
| array | an array of tests. |

filterTests(
$input
)
:
voidFilters an array of classes, removes all classes that are not test cases or test suites, or classes that are declared abstract
| Name | Type | Description |
|---|---|---|
| $input |

getFilenames(
)
:
arrayIterate over all filesets and return the filename of all files.
| Type | Description |
|---|---|
| array | an array of filenames |

getTestSuite(
)
:
\PHPUnit_Framework_TestSuiteReturns a testsuite containing all the tests in this batch
| Type | Description |
|---|---|
| \PHPUnit_Framework_TestSuite |
- Deprecated

isTestCase(
$input
)
:
voidChecks wheter $input is a PHPUnit Test
| Name | Type | Description |
|---|---|---|
| $input |