Fat-Free Framework
3.1.0 API Reference
|
Test Class Reference
Unit test kit. More...
Public Member Functions | |
results () | |
expect ($cond, $text=NULL) | |
message ($text) | |
__construct ($level=self::FLAG_Both) | |
Public Attributes | |
const | FLAG_False =0 |
const | FLAG_True =1 |
const | FLAG_Both =2 |
Detailed Description
Unit test kit.
Constructor & Destructor Documentation
Test::__construct | ( | $level = self::FLAG_Both ) |
Class constructor
- Returns
- NULL
- Parameters
-
$level int
Member Function Documentation
Test::expect | ( | $cond, | |
$text = NULL |
|||
) |
Evaluate condition and save test result
- Returns
- NULL
- Parameters
-
$cond bool $text string
Test::message | ( | $text) |
Append message to test results
- Returns
- NULL
- Parameters
-
$text string
Test::results | ( | ) |
Return test results
- Returns
- array
The documentation for this class was generated from the following file:
- test.php
Generated on Mon Aug 19 2013 21:27:52 for Fat-Free Framework by 1.8.4