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

TestCaseBase Class Reference

Base class for Test cases. More...

Inheritance diagram for TestCaseBase:
Assert TestCase

Public Member Functions

 Init (TestCaseResultConstructor &$testCaseResults)
 GetName ()
 GetID ()
 GetDescription ()

Protected Member Functions

 __construct ($name, $description, $id)

Protected Attributes

 $testCaseResults
 Where to place the results when running the test case.

Detailed Description

Base class for Test cases.

The base for TestCase to hide the internals from the functions TestCase::SetUp, TestCase::Run and TestCase::TearDown.

Definition at line 734 of file php_unit_test.php.


Constructor & Destructor Documentation

__construct ( name,
description,
id 
) [protected]

Constructs the object.

Parameters:
[in]string$nameA name for test case.
[in]string$descriptionA description for the test case.
[in]string$idTest case ID.

Reimplemented in Assert, and TestCase.

Definition at line 758 of file php_unit_test.php.


Member Function Documentation

GetDescription ( )

Returns the description for the test case.

Returns:
Returns a string storing the description for the test case.

Definition at line 791 of file php_unit_test.php.

GetID ( )

Returns the ID for the test case.

Returns:
Returns a string storing the ID for the test case.

Definition at line 782 of file php_unit_test.php.

GetName ( )

Returns the name for the test case.

Returns:
Returns a string storing the name for the test case.

Definition at line 773 of file php_unit_test.php.

Init ( TestCaseResultConstructor &$  testCaseResults)

Initialize the test case as used by TestSuite::Run

Parameters:
[in]TestCaseResultConstructor$testCaseResultsWhere to store the results as a collection of events.

Definition at line 747 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