classes/phing/tasks/ext/phpunit/BatchTest.php
\BatchTest
Scans a list of files given by the fileset attribute, extracts valid test cases
- author
- Michiel Rook
- package
- phing.tasks.ext.phpunit
- since
- 2.1.0
- version
- $Id: BatchTest.php 972 2010-11-09 16:06:29Z mrook $
Properties

$filesets= 'array'
the list of filesets containing the testcase filename rules
arrayDetails- Type
Methods

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

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

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

filterTests(
$input
)
:
Filters 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 |

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

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