Moodle  2.2.1
http://www.collinsharper.com
SimpleInvoker Class Reference

Public Member Functions

 SimpleInvoker (&$test_case)
getTestCase ()
 before ($method)
 invoke ($method)
 after ($method)

Data Fields

 $_test_case

Detailed Description

Definition at line 30 of file invoker.php.


Member Function Documentation

after ( method)

Runs test level clean up. Used for changing the mechanics of base test cases.

Parameters:
string$methodTest method to call. public

Definition at line 89 of file invoker.php.

before ( method)

Runs test level set up. Used for changing the mechanics of base test cases.

Parameters:
string$methodTest method to call. public

Definition at line 56 of file invoker.php.

& getTestCase ( )

Accessor for test case being run.

Returns:
SimpleTestCase Test case. public

Definition at line 46 of file invoker.php.

invoke ( method)

Invokes a test method and buffered with setUp() and tearDown() calls.

Parameters:
string$methodTest method to call. public

Definition at line 66 of file invoker.php.

SimpleInvoker ( &$  test_case)

Stashes the test case for later.

Parameters:
SimpleTestCase$test_caseTest case to run.

Definition at line 37 of file invoker.php.


Field Documentation

$_test_case

Definition at line 31 of file invoker.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations