SimpleTestContext Class Reference

List of all members.


Public Member Functions

 clear ()
 setTest (&$test)
getTest ()
 setReporter (&$reporter)
getReporter ()

Static Public Member Functions

get ($resource)

Public Attributes

 $_test
 $_reporter
 $_resources


Detailed Description

Definition at line 219 of file simpletest.php.


Member Function Documentation

SimpleTestContext::clear (  ) 

Clears down the current context. public

Definition at line 228 of file simpletest.php.

Referenced by setReporter(), and setTest().

SimpleTestContext::setTest ( &$  test  ) 

Sets the current test case instance. This global instance can be used by the mock objects to send message to the test cases.

Parameters:
SimpleTestCase $test Test case to register. public

Definition at line 239 of file simpletest.php.

References clear().

Here is the call graph for this function:

& SimpleTestContext::getTest (  ) 

Accessor for currently running test case.

Returns:
SimpleTestCase Current test. public

Definition at line 249 of file simpletest.php.

SimpleTestContext::setReporter ( &$  reporter  ) 

Sets the current reporter. This global instance can be used by the mock objects to send messages.

Parameters:
SimpleReporter $reporter Reporter to register. public

Definition at line 260 of file simpletest.php.

References clear().

Here is the call graph for this function:

& SimpleTestContext::getReporter (  ) 

Accessor for current reporter.

Returns:
SimpleReporter Current reporter. public

Definition at line 270 of file simpletest.php.

& SimpleTestContext::get ( resource  )  [static]

Accessor for the Singleton resource.

Returns:
object Global resource. public

Definition at line 280 of file simpletest.php.


Member Data Documentation

SimpleTestContext::$_test

Definition at line 220 of file simpletest.php.

SimpleTestContext::$_reporter

Definition at line 221 of file simpletest.php.

SimpleTestContext::$_resources

Definition at line 222 of file simpletest.php.


The documentation for this class was generated from the following file:

Generated on Mon Jun 2 15:09:15 2008 for SimpleTest by  1.5.5