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

TestSuite Class Reference

Collects together test cases and enables them to be run together. More...

Public Member Functions

 __construct ()
 AllPassed ()
 AddTest ($className)
 Run (TestSuiteResult &$results)

Detailed Description

Collects together test cases and enables them to be run together.

This class collects together a series of test cases.

Definition at line 1409 of file php_unit_test.php.


Constructor & Destructor Documentation

__construct ( )

Constructs the test suite object.

Definition at line 1417 of file php_unit_test.php.


Member Function Documentation

AddTest ( className)

Adds a test case to the test suite.

Parameters:
[in]string$classNameAdds the test case to the suite.

Definition at line 1435 of file php_unit_test.php.

AllPassed ( )

Returns true if all the tests pass, false otherwise.

Definition at line 1426 of file php_unit_test.php.

Run ( TestSuiteResult &$  results)

Runs all the test case placing the results in $results. This should only be used by the TestRunner class.

Parameters:
[in,out]TestSuiteResult&$resultsObject to store the results.

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