classes/phing/tasks/ext/phpunit/PHPUnitTask.php
\PHPUnitTask
Runs PHPUnit tests.
Use {@link Project#createTask} to register a new Task.
- Extends from
- \Task
- see
- \BatchTest
- author
- Michiel Rook
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.ext.phpunit
- since
- 2.1.0
- version
- $Id: PHPUnitTask.php 1229 2011-07-25 19:54:19Z mrook $
Properties
Methods

addFormatter(
\FormatterElement $fe
)
:
Add a new formatter to all tests of this task.
| Name | Type | Description |
|---|---|---|
| $fe | \FormatterElement | formatter element |

createBatchTest(
)
:
\BatchTestAdds a set of tests based on pattern matching.
| Type | Description |
|---|---|
| \BatchTest |

init(
)
:
Initialize Task.
This method includes any necessary PHPUnit 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.

setBootstrap(
string $bootstrap
)
:
Sets the name of a bootstrap file that is run before
executing the tests
| Name | Type | Description |
|---|---|---|
| $bootstrap | string | the name of the bootstrap file |