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:

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,
) [protected]

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

[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 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.

[in]integer$indexAn index into the list of events.
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.

The test case ID.

Definition at line 556 of file php_unit_test.php.

GetName ( )

Returns the test case name.

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.

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