Class SimpleTestContext

Description

Container for all components for a specific

test run. Makes things like error queues available to PHP event handlers, and also gets around some nasty reference issues in the mocks.

Located in /simpletest.php (line 254)


	
			
Variable Summary
 mixed $_reporter
 mixed $_resources
 mixed $_test
Method Summary
 static object Global &get ( $resource)
 void clear ()
 void setReporter ( &$reporter, SimpleReporter $reporter)
 void setTest ( &$test, SimpleTestCase $test)
Variables
mixed $_reporter (line 256)
mixed $_resources (line 257)
mixed $_test (line 255)
Methods
static get (line 315)

Accessor for the Singleton resource.

  • return: resource.
  • access: public
static object Global &get ( $resource)
  • $resource
clear (line 263)

Clears down the current context.

  • access: public
void clear ()
getReporter (line 305)

Accessor for current reporter.

  • return: Current reporter.
  • access: public
SimpleReporter &getReporter ()
getTest (line 284)

Accessor for currently running test case.

  • return: Current test.
  • access: public
SimpleTestCase &getTest ()
setReporter (line 295)

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

  • access: public
void setReporter ( &$reporter, SimpleReporter $reporter)
setTest (line 274)

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

  • access: public
void setTest ( &$test, SimpleTestCase $test)

Documentation generated on Sun, 04 May 2008 09:22:10 -0500 by phpDocumentor 1.3.0