tasks/ext/phpunit/PHPUnitTestRunner.php
$Id: PHPUnitTestRunner.php 1354 2011-11-01 14:12:42Z mrook $
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This software consists of voluntary contributions made by many individuals and is licensed under the LGPL. For more information please see http://phing.info.
\PHPUnitTestRunner
Simple Testrunner for PHPUnit that runs all tests of a testsuite.
- Implements
- Parent(s)
- \PHPUnit_Runner_BaseTestRunner
- Author
- Michiel Rook
- Since
- 2.1.0
- Version
- $Id: PHPUnitTestRunner.php 1354 2011-11-01 14:12:42Z mrook $
Constants
Properties
Methods

__construct(
$project, $groups
=
array(), $excludeGroups
=
array(), $processIsolation
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $project | ||
| $groups | ||
| $excludeGroups | ||
| $processIsolation |

addError(
\PHPUnit_Framework_Test $test, \Exception $e, float $time
)
:
voidAn error occurred.
| Name | Type | Description |
|---|---|---|
| $test | \PHPUnit_Framework_Test | |
| $e | \Exception | |
| $time | float |

addFailure(
\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, float $time
)
:
voidA failure occurred.
| Name | Type | Description |
|---|---|---|
| $test | \PHPUnit_Framework_Test | |
| $e | \PHPUnit_Framework_AssertionFailedError | |
| $time | float |

addIncompleteTest(
\PHPUnit_Framework_Test $test, \Exception $e, float $time
)
:
voidIncomplete test.
| Name | Type | Description |
|---|---|---|
| $test | \PHPUnit_Framework_Test | |
| $e | \Exception | |
| $time | float |

addSkippedTest(
\PHPUnit_Framework_Test $test, \Exception $e, float $time
)
:
voidSkipped test.
| Name | Type | Description |
|---|---|---|
| $test | \PHPUnit_Framework_Test | |
| $e | \Exception | |
| $time | float |
- Since
- Method available since Release 3.0.0

endTest(
\PHPUnit_Framework_Test $test, float $time
)
:
voidA test ended.
| Name | Type | Description |
|---|---|---|
| $test | \PHPUnit_Framework_Test | |
| $time | float |

endTestSuite(
\PHPUnit_Framework_TestSuite $suite
)
:
voidA test suite ended.
| Name | Type | Description |
|---|---|---|
| $suite | \PHPUnit_Framework_TestSuite |
- Since
- Method available since Release 2.2.0

handleError(
$level, $message, $file, $line
)
:
void| Name | Type | Description |
|---|---|---|
| $level | ||
| $message | ||
| $file | ||
| $line |

runFailed(
string $message
)
:
voidOverride to define how to handle a failed loading of a test suite.
| Name | Type | Description |
|---|---|---|
| $message | string |

setUseCustomErrorHandler(
$useCustomErrorHandler
)
:
void| Name | Type | Description |
|---|---|---|
| $useCustomErrorHandler |

startTest(
\PHPUnit_Framework_Test $test
)
:
voidA test started.
| Name | Type | Description |
|---|---|---|
| $test | \PHPUnit_Framework_Test |

startTestSuite(
\PHPUnit_Framework_TestSuite $suite
)
:
voidA test suite started.
| Name | Type | Description |
|---|---|---|
| $suite | \PHPUnit_Framework_TestSuite |
- Since
- Method available since Release 2.2.0

testFailed(
integer $status, \PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e
)
:
voidA test failed.
| Name | Type | Description |
|---|---|---|
| $status | integer | |
| $test | \PHPUnit_Framework_Test | |
| $e | \PHPUnit_Framework_AssertionFailedError |