| core_lang

# Class: Bs_TestCase Source Location: /core/lang/phpunit/Bs_TestCase.class.php
### Class Overview
    Bs_Assert
       |
       --Bs_TestCase
Defines context for running tests. Specific context - such as #### Author(s): andrej arn <at blueshoes dot org> #### Version: 4.3.$Revision: 1.2 $ $Date: 2003/08/09 15:17:48 $ | ### Variables $_fExceptions $_fName $_fResult | ### Methods Bs_TestCase countTestCases error fail failed getExceptions name run runBare runTest setUp tearDown _createResult
### Child classes: Bs_Rc4Crypt_PhpUnit Defines context for running tests. Specific context - such as Bs_Date_PhpUnit Defines context for running tests. Specific context - such as Bs_Db_PhpUnit Bs_Mysql_PhpUnit Bs_Dir_PhpUnit Defines context for running tests. Specific context - such as Bs_FileSystem_PhpUnit Defines context for running tests. Specific context - such as Bs_FileUtil_PhpUnit Defines context for running tests. Specific context - such as Bs_HtmlInfo_PhpUnit Bs_HtmlUtil_PhpUnit Bs_FormTemplateParser_PhpUnit Defines context for running tests. Specific context - such as PhpSyntax_PhpUnit i think this is something for every serious php coder. if you're not absolutely sure what the getType(NULL) returns, if empty(NULL) is TRUE etc, and you are not, then this is something for you too. Bs_Url_PhpUnit Defines context for running tests. Specific context - such as Bs_EmailUtil_PhpUnit Defines context for running tests. Specific context - such as Bs_EmailValidator_PhpUnit Defines context for running tests. Specific context - such as Bs_HttpClient_PhpUnit Defines context for running tests. Specific context - such as Bs_TextUtil_PhpUnit Bs_Array_PhpUnit Bs_CsvUtil_PhpUnit Bs_IniHandler_PhpUnit Bs_Number_PhpUnit Bs_String_PhpUnit Bs_UnitConverter_PhpUnit Bs_Is_Indexer_PhpUnit Defines context for running tests. Specific context - such as Bs_Is_IndexServer_PhpUnit Defines context for running tests. Specific context - such as Bs_Is_Searcher_PhpUnit Defines context for running tests. Specific context - such as | ### Inherited Variables | ### Inherited Methods
### Class Details [line 20] Defines context for running tests. Specific context - such as instance variables, global variables, global state - is defined by creating a subclass that specializes the setUp() and tearDown() methods. A specific test is defined by a subclass that specializes the runTest() method. PHP framework for testing, based on the version from the design of "JUnit". #### Tags:
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 Variables #### $_fExceptions = array() [line 38]
Type: | mixed
[ Top ] #### $_fName = [line 26]
Type: | mixed
[ Top ] #### $_fResult = [line 32]
Type: | mixed
[ Top ] ### Class Methods ### constructor Bs_TestCase [line 45]
`Bs_TestCase Bs_TestCase( mixed $name)`
[ Top ] ### method countTestCases [line 79]
`void countTestCases( )`
[ Top ] ### method error [line 126]
`void error( mixed $message)`
[ Top ] ### method fail [line 119]
`void fail( [mixed $message = 0])`
[ Top ] ### method failed [line 133]
`void failed( )`
[ Top ] ### method getExceptions [line 137]
`void getExceptions( )`
[ Top ] ### method name [line 101]
`void name( )`
[ Top ] ### method run [line 65]
`void run( [mixed $testResult = FALSE], object $test)`
Run a single TestCase in the context of this TestResult Run this single test, by calling the run() method of the TestResult object which will in turn call the runBare() method of this object. That complication allows the TestResult object to do various kinds of progress reporting as it invokes each test. Create/obtain a TestResult object if none was passed in. Note that if a TestResult object was passed in, it must be by reference. #### Tags:
access: | public
#### Parameters:
object | $test | an instance of Bs_TestCase
[ Top ] ### method runBare [line 141]
`void runBare( )`
[ Top ] ### method runTest [line 88]
`void runTest( )`
Overridden in child classes as: Bs_Db_PhpUnit::runTest() Bs_Mysql_PhpUnit::runTest() [ Top ] ### method setUp [line 106]
`void setUp( )`
Overridden in child classes as: Bs_Db_PhpUnit::setUp() Bs_Mysql_PhpUnit::setUp() [ Top ] ### method tearDown [line 110]
`void tearDown( )`
[ Top ] ### method _createResult [line 114]
`void _createResult( )`
[ Top ] Documentation generated on Mon, 29 Dec 2003 21:13:06 +0100 by phpDocumentor 1.2.3