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


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

Clears down the current context.

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

Accessor for the Singleton resource.

  • return: resource.
  • access: public
object Global get ( $resource)
  • $resource
getReporter (line 318)

Accessor for current reporter.

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

Accessor for currently running test case.

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

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

  • access: public
void setReporter (SimpleReporter $reporter)
setTest (line 287)

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 (SimpleTestCase $test)

Documentation generated on Thu, 01 Oct 2009 20:55:50 -0500 by phpDocumentor 1.4.2