SimpleTest


SimpleTest\SimpleInvoker
runner.php at line 30

Class SimpleInvoker

SimpleInvoker

public class SimpleInvoker

This is called by the class runner to run a single test method. Will also run the setUp() and tearDown() methods.

Subpackage:
UnitTester

Constructor Summary

SimpleInvoker(SimpleTestCase test_case)

Stashes the test case for later.

Method Summary
SimpleTestCase

getTestCase()

Accessor for test case being run.

void

invoke(string method)

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

Constructor Detail

runner.php at line 37

SimpleInvoker

public SimpleInvoker(SimpleTestCase test_case)

Stashes the test case for later.

Parameters:
test_case - Test case to run.

Method Detail

runner.php at line 46

getTestCase

public SimpleTestCase getTestCase()

Accessor for test case being run.

Returns:
Test case.

runner.php at line 56

invoke

public void invoke(string method)

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

Parameters:
method - Test method to call.

SimpleTest