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

TestCase Class Reference

Abstract class the unit test cases authors need to implement. More...

Inheritance diagram for TestCase:
Assert TestCaseBase

Public Member Functions

 __construct ($name=null, $description=null, $id=null)
 SetUp ()
 Run ()
 TearDown ()

Detailed Description

Abstract class the unit test cases authors need to implement.

This abstract class needs to be extended for your test cases. The following methods need to be implemented:

Definition at line 1365 of file php_unit_test.php.


Constructor & Destructor Documentation

__construct ( name = null,
description = null,
id = null 
)

Uses to construct the test case.

Parameters:
[in]string$nameName for the test case (defaults to the class name).
[in]string$descriptionDescription for the test case (defaults to 'No description.').
[in]string$idTest case ID (uses a counter if no ID is given).

Reimplemented from Assert.

Definition at line 1373 of file php_unit_test.php.


Member Function Documentation

Run ( ) [abstract]

This method needs to be implemented with code to perform the test case. This runs only if the SetUp does not throw an exception or an assertion fails.

SetUp ( ) [abstract]

This method needs to be implemented with code to perform the set up for the test.

TearDown ( ) [abstract]

This method needs to be implemented with code to perform the tidying up after the test has completed. It is always executed.


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

© 2011, Ed Heal