|
|
|
File: C:/usr/local/lib/php/blueshoes-4.2/core/lang/phpunit/Bs_TestResult.class.php
BlueShoes Application Framework - PhpUnit
Bs_TestResult
Bs_Object | +-- Bs_TestResult
Collect the results of running a set of TestCases.
|
public class Bs_TestResult extends Bs_Object
Collect the results of running a set of TestCases.
PHP framework for testing, based on the version from the design of "JUnit".
| Authors | andrej arn <andrej@arn.li> |
| Version | 4.0.$id$ |
| Copyright | blueshoes.org |
|
| |
|
Direct known subclasses: Bs_TextTestResult
|
|
Methods inherited from Bs_Object |
| isex, isexception, tostring, tohtml, persist, unpersist, bs_object, bbsetoutput, bbawake, bbisawake, bbxmsg, bbxfunctionstart, bbxfunctionend, bbxecho, bbxvar, bbxvardump, bbforcetrace, bbbufferstart, bbbufferget, bbbufferendflush, bbbufferendclean |
|
|
|
|
|
Private Field Summary |
| array |
$_fFailuresArray holding instances of Bs_TestFailure |
| integer |
$_fRunTestsNumber of tests, default is 0. |
| string |
$_fStop |
|
|
|
Public Method Details |
Bs_TestResult |
|
public void Bs_TestResult( )
|
| |
Constructor.
|
| Returns |
void |
|
run |
|
public void run( object [unknown] $test )
|
| |
Run a single TestCase in the context of this TestResult
|
| Parameter |
|
| object [unknown] |
$test |
|
|
an instance of Bs_TestCase |
|
| Returns |
void |
|
getFailures |
|
public array getFailures( )
|
| |
Returns an array holding instances of Bs_TestFailure.
|
| Returns |
array holding instances of Bs_TestFailure. |
|
countFailures |
|
public int countFailures( )
|
| |
Return the number of failures that occured.
|
| Returns |
int number of failures occured. |
|
countTests |
|
public int countTests( )
|
| |
Return the number of tests that were made/have to be made (don't know yet)
|
| Returns |
int number of tests. |
|
shouldStop |
|
public boolean shouldStop( )
|
| |
Tells whether the sequence should halt or not.
|
| Returns |
boolean if we should halt or not. |
|
stop |
|
public void stop( )
|
| |
Set indication that the test sequence should halt.
|
| Returns |
void |
|
|
Private Method Details |
_startTest |
|
private void _startTest( object [unknown] $test )
|
| |
|
| Parameter |
|
| object [unknown] |
$test |
|
|
an instance of Bs_TestCase |
|
| Returns |
void |
|
_endTest |
|
private void _endTest( object [unknown] $test )
|
| |
|
| Parameter |
|
| object [unknown] |
$test |
|
|
an instance of Bs_TestCase |
|
| Returns |
void |
|
|
Private Field Details |
$_fFailures |
|
private array $_fFailures
>>array()<<
Array holding instances of Bs_TestFailure
|
|
$_fRunTests |
|
private integer $_fRunTests
>><<
Number of tests, default is 0.
|
|
$_fStop |
|
private string $_fStop
>>FALSE<<
|
|
|
Private Constant Details |
BS_TESTRESULT_VERSION
define( BS_TESTRESULT_VERSION, >>4.0.$x$<< )
Case: default: case sensitive
|
|
|
|
|
|
| PHPDoc 1.0beta |