BlueShoes Application Framework made with PHP http://www.blueshoes.org/


Packageindex Classtrees Modulegroups Elementlist Report XML Files

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".

Authorsandrej arn <andrej@arn.li>
Version4.0.$id$
Copyrightblueshoes.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

Public Method Summary

void

Bs_TestResult()

Constructor.
void

run(object [unknown] $test)

Run a single TestCase in the context of this TestResult
array

getFailures()

Returns an array holding instances of Bs_TestFailure.
int

countFailures()

Return the number of failures that occured.
int

countTests()

Return the number of tests that were made/have to be made (don't know yet)
boolean

shouldStop()

Tells whether the sequence should halt or not.
void

stop()

Set indication that the test sequence should halt.

Private Method Summary

void

_startTest(object [unknown] $test)

void

_endTest(object [unknown] $test)

Private Field Summary

array

$_fFailures

Array holding instances of Bs_TestFailure
integer

$_fRunTests

Number of tests, default is 0.
string

$_fStop

Private Constant Summary

BS_TESTRESULT_VERSION >>4.0.$x$<< Warning: documentation is missing.

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




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta