Documentation

PhpTestCaseProxy extends PHPUnit_Extensions_PhptTestCase
in package

Runner for PHPT test cases.

Table of Contents

$filename  : string
$settings  : array<string|int, mixed>
__construct()  : mixed
Constructs a test case with the given filename.
count()  : int
Counts the number of test cases executed by run(TestResult result).
getName()  : string
Returns the name of the test case.
parseIniSection()  : array<string|int, mixed>
Parse --INI-- section key value pairs and return as array.
run()  : PHPUnit_Framework_TestResult
Runs a test and collects its result in a TestResult instance.
toString()  : string
Returns a string representation of the test case.
parse()  : array<string|int, mixed>
render()  : string

Properties

$settings

private array<string|int, mixed> $settings = array('allow_url_fopen=1', 'auto_append_file=', 'auto_prepend_file=', 'disable_functions=', 'display_errors=1', 'docref_root=', 'docref_ext=.html', 'error_append_string=', 'error_prepend_string=', 'error_reporting=-1', 'html_errors=0', 'log_errors=0', 'magic_quotes_runtime=0', 'output_handler=', 'open_basedir=', 'output_buffering=Off', 'report_memleaks=0', 'report_zend_debug=0', 'safe_mode=0', 'track_errors=1', 'xdebug.default_enable=0')

Methods

__construct()

Constructs a test case with the given filename.

public __construct(string $filename) : mixed
Parameters
$filename : string
Tags
throws
PHPUnit_Framework_Exception
Return values
mixed

count()

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

public count() : int
Return values
int

getName()

Returns the name of the test case.

public getName() : string
Return values
string

parseIniSection()

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

public parseIniSection(mixed $content) : array<string|int, mixed>
Parameters
$content : mixed
Return values
array<string|int, mixed>

toString()

Returns a string representation of the test case.

public toString() : string
Return values
string

render()

private render(string $code) : string
Parameters
$code : string
Return values
string

Search results