class PHPUnit_Extensions_PhptTestCase implements PHPUnit_Framework_Test, PHPUnit_Framework_SelfDescribing (View source)

Runner for PHPT test cases.

Methods

__construct(string $filename, PHPUnit_Util_PHP $phpUtil = null)

Constructs a test case with the given filename.

int
count()

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

run(PHPUnit_Framework_TestResult $result = null)

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

string
getName()

Returns the name of the test case.

string
toString()

Returns a string representation of the test case.

array
parseIniSection(string $content)

Parse --INI-- section key value pairs and return as array.

parseEnvSection($content)

No description

Details

__construct(string $filename, PHPUnit_Util_PHP $phpUtil = null)

Constructs a test case with the given filename.

Parameters

string $filename
PHPUnit_Util_PHP $phpUtil

Exceptions

PHPUnit_Framework_Exception

int count()

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

Return Value

int

PHPUnit_Framework_TestResult run(PHPUnit_Framework_TestResult $result = null)

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

string getName()

Returns the name of the test case.

Return Value

string

string toString()

Returns a string representation of the test case.

Return Value

string

protected array parseIniSection(string $content)

Parse --INI-- section key value pairs and return as array.

Parameters

string $content

Return Value

array

protected parseEnvSection($content)

Parameters

$content