Fat-Free Framework
3.2.2
|
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 |
Protected Attributes | |
$data =array() | |
Test results. | |
Unit test kit.
Test::__construct | ( | $level = self::FLAG_Both | ) |
Class constructor
$level | int |
Test::expect | ( | $cond, | |
$text = NULL |
|||
) |
Evaluate condition and save test result
$cond | bool |
$text | string |
Test::message | ( | $text | ) |
Append message to test results
$text | string |
Test::results | ( | ) |
Return test results