class (none) \ PHPUnit_Extensions_PhptTestCase

All implemented interfaces:
Countable, PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing

Runner for PHPT test cases.


Method Summary

Name Description
__construct($filename)Constructs a test case with the given filename.
count()Counts the number of test cases executed by run(TestResult result).
getName()Returns the name of the test case.
parse()
render($code)
run(PHPUnit_Framework_TestResult $result = null)Runs a test and collects its result in a TestResult instance.
toString()Returns a string representation of the test case.

public function __construct($filename)

Constructs a test case with the given filename.

Parameters:
string - $filename
Throws:
PHPUnit_Framework_Exception

public function count()

Counts the number of test cases executed by run(TestResult result).

Returns:
integer

public function getName()

Returns the name of the test case.

Returns:
string

private function parse()

Returns:
array
Throws:
PHPUnit_Framework_Exception

private function render($code)

Parameters:
string - $code
Returns:
string

public function run(PHPUnit_Framework_TestResult $result = null)

Runs a test and collects its result in a TestResult instance.

Parameters:
PHPUnit_Framework_TestResult - $result
Defaults:
result = null
Returns:
PHPUnit_Framework_TestResult

public function toString()

Returns a string representation of the test case.

Returns:
string