PHP Unit Testing Framework 1
A Unit testing framework for PHP.
Public Member Functions | Protected Member Functions

TestCaseResult Class Reference

Stores events for a test case. More...

Inheritance diagram for TestCaseResult:
TestCaseResultConstructor

Public Member Functions

 GetName ()
 GetID ()
 GetDescription ()
 GetNumberOfEvents ()
 GetEvent ($index)
 TestPassed ()

Protected Member Functions

 __construct ($name, $id)

Detailed Description

Stores events for a test case.

Provides access to the events in a test case along with:

Definition at line 526 of file php_unit_test.php.


Constructor & Destructor Documentation

__construct ( name,
id 
) [protected]

Constructs an object to store events for a test case execution.

Parameters:
[in]string$nameA name for this test case.
[in]string$idA test ID for this test case.

Reimplemented in TestCaseResultConstructor.

Definition at line 534 of file php_unit_test.php.


Member Function Documentation

GetDescription ( )

Returns a description.

Returns:
Returns a description of the test case.

Definition at line 565 of file php_unit_test.php.

GetEvent ( index)

Fetches an event as indexed by $index.

Parameters:
[in]integer$indexAn index into the list of events.
Returns:
A event that makes up the test case result. The return type is Event.

Definition at line 585 of file php_unit_test.php.

GetID ( )

Returns the test case ID.

Returns:
The test case ID.

Definition at line 556 of file php_unit_test.php.

GetName ( )

Returns the test case name.

Returns:
The test case name.

Definition at line 547 of file php_unit_test.php.

GetNumberOfEvents ( )

Returns the number of events that make up the result for this test case.

Definition at line 574 of file php_unit_test.php.

TestPassed ( )

Returns true if the test passed.

Returns:
A boolean value; true if test passed, or false if it failed.

Definition at line 595 of file php_unit_test.php.


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

© 2011, Ed Heal