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 248)


	
			
Method Summary
 void clear ()
 object Global get ( $resource)
 void setReporter (SimpleReporter $reporter)
 void setTest (SimpleTestCase $test)
Methods
clear (line 257)

Clears down the current context.

  • access: public
void clear ()
get (line 303)

Accessor for the Singleton resource.

  • return: resource.
object Global get ( $resource)
  • $resource
getReporter (line 295)

Accessor for current reporter.

  • return: Current reporter.
SimpleReporter getReporter ()
getTest (line 276)

Accessor for currently running test case.

  • return: Current test.
SimpleTestCase getTest ()
setReporter (line 286)

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

void setReporter (SimpleReporter $reporter)
setTest (line 267)

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

void setTest (SimpleTestCase $test)

Documentation generated on Sun, 31 Oct 2010 16:32:25 -0500 by phpDocumentor 1.4.3