Fat-Free Framework  3.3.0  Overview Class List Hierarchy
Public Member Functions | Protected Attributes | List of all members
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
 

Protected Attributes

 $data =array()
 Test results.
 

Detailed Description

Unit test kit.

Constructor & Destructor Documentation

Test::__construct (   $level = self::FLAG_Both)

Class constructor

Returns
NULL
Parameters
$levelint

Member Function Documentation

Test::expect (   $cond,
  $text = NULL 
)

Evaluate condition and save test result

Returns
object
Parameters
$condbool
$textstring
Test::message (   $text)

Append message to test results

Returns
NULL
Parameters
$textstring
Test::results ( )

Return test results

Returns
array

The documentation for this class was generated from the following file: