blueshoes php application framework and cms            core_lang
[ class tree: core_lang ] [ index: core_lang ] [ all elements ]

Class: Bs_TestResult

Source Location: /core/lang/phpunit/Bs_TestResult.class.php

Class Overview

Bs_Object
   |
   --Bs_TestResult

Collect the results of running a set of TestCases.


Author(s):

Version:

  • 4.3.$Revision: 1.2 $ $Date: 2003/08/09 15:17:48 $

Copyright:

  • blueshoes.org

Methods


Child classes:

Bs_TextTestResult
Specialize TestResult to produce text/html report.

Inherited Variables

Inherited Methods

Class: Bs_Object

Bs_Object::Bs_Object()
Bs_Object::getErrors()
Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack.
Bs_Object::getLastError()
Basic error handling: Get last error string from the global Bs_Error-error stack.
Bs_Object::getLastErrors()
Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors().
Bs_Object::persist()
Persists this object by serializing it and saving it to a file with unique name.
Bs_Object::setError()
Basic error handling: Push an error string on the global Bs_Error-error stack.
Bs_Object::toHtml()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::toString()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::unpersist()
Fetches an object that was persisted with persist()

Class Details

[line 16]
Collect the results of running a set of TestCases.

PHP framework for testing, based on the version from the design of "JUnit".




Tags:

copyright:  blueshoes.org
pattern:  singleton: (pseudostatic)
access:  public
version:  4.3.$Revision: 1.2 $ $Date: 2003/08/09 15:17:48 $
author:  andrej arn <at blueshoes dot org>


[ Top ]


Class Methods


constructor Bs_TestResult [line 41]

void Bs_TestResult( )

Constructor.



[ Top ]

method countFailures [line 77]

int countFailures( )

Return the number of failures that occured.



Tags:

return:  number of failures occured.
access:  public


[ Top ]

method countTests [line 90]

int countTests( )

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



Tags:

return:  number of tests.
access:  public


[ Top ]

method getFailures [line 68]

array getFailures( )

Returns an array holding instances of Bs_TestFailure.



Tags:

return:  holding instances of Bs_TestFailure.
access:  public


[ Top ]

method run [line 51]

void run( object $test)

Run a single TestCase in the context of this TestResult



Tags:

access:  public


Parameters:

object   $test   an instance of Bs_TestCase

[ Top ]

method shouldStop [line 99]

boolean shouldStop( )

Tells whether the sequence should halt or not.



Tags:

return:  if we should halt or not.
access:  public


[ Top ]

method stop [line 107]

void stop( )

Set indication that the test sequence should halt.



Tags:

access:  public


[ Top ]

method _endTest [line 125]

void _endTest( object $test)



Overridden in child classes as:

Bs_TextTestResult::_endTest()

Parameters:

object   $test   an instance of Bs_TestCase

[ Top ]

method _startTest [line 116]

void _startTest( object $test)



Overridden in child classes as:

Bs_TextTestResult::_startTest()

Parameters:

object   $test   an instance of Bs_TestCase

[ Top ]


Documentation generated on Mon, 29 Dec 2003 21:13:07 +0100 by phpDocumentor 1.2.3