Class SapphireTestReporter
Gathers details about PHPUnit2 test suites as they are been executed. This does not actually format any output but simply gathers extended information about the overall results of all suites & their tests for use elsewhere.
Changelog: 0.6 First created [David Spurr] 0.7 Added fix to getTestException provided [Glen Ogilvie]
- SapphireTestReporter implements PHPUnit_Framework_TestListener
Direct known subclasses
Author: David Spurr
Version: 0.7 2006-03-12
Located at sapphire/dev/SapphireTestReporter.php
Methods summary
public
|
#
__construct( )
Constructor, checks to see availability of PEAR Benchmark_Timer and sets up basic properties |
public
array
|
|
public
|
#
startTestSuite( PHPUnit_Framework_TestSuite $suite )
Sets up the container for result details of the current test suite when each suite is first run |
public
|
|
public
|
#
addFailure( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, mixed $time )
Adds the failure detail to the current test and increases the failure count for the current suite |
public
|
|
public
|
#
addIncompleteTest( PHPUnit_Framework_Test $test,
Adds the test incomplete detail to the current test and increases the incomplete count for the current suite |
public
|
|
public
|
|
public
|
#
endTestSuite( PHPUnit_Framework_TestSuite $suite )
Upon completion of a test suite adds the suite to the suties performed |
public
|
|
protected
|
Magic methods summary
Properties summary
protected
array
|
$suiteResults |
#
Holds array of suites and total number of tests run |
protected
array
|
$currentSuite |
#
Holds data of current suite that is been run |
protected
array
|
$currentTest |
#
Holds data of current test that is been run |
protected
boolean
|
$hasTimer |
#
Whether PEAR Benchmark_Timer is available for timing |
protected
obj
|
$timer |
#
Holds the PEAR Benchmark_Timer object |
protected
mixed
|
$startTestTime | |
protected
array
|
$testSpeeds |
#
An array of all the test speeds |