Moodle  2.2.1
http://www.collinsharper.com
ArraysHaveSameValuesExpectation Class Reference
Inheritance diagram for ArraysHaveSameValuesExpectation:
Collaboration diagram for ArraysHaveSameValuesExpectation:

Public Member Functions

 ArraysHaveSameValuesExpectation ($expected, $message= '%s')
 test ($actual)
 normalise ($array)
 testMessage ($actual)

Data Fields

 $expect

Detailed Description

Definition at line 111 of file simpletestlib.php.


Member Function Documentation

ArraysHaveSameValuesExpectation ( expected,
message = '%s' 
)

Definition at line 114 of file simpletestlib.php.

Here is the call graph for this function:

normalise ( array)

Definition at line 127 of file simpletestlib.php.

Here is the caller graph for this function:

test ( compare)

Tests the expectation. True if correct.

Parameters:
mixed$compareComparison value.
Returns:
boolean True if correct. public

Reimplemented from SimpleExpectation.

Definition at line 123 of file simpletestlib.php.

Here is the call graph for this function:

testMessage ( compare)

Returns a human readable test message.

Parameters:
mixed$compareComparison value.
Returns:
string Description of success or failure. public

Reimplemented from SimpleExpectation.

Definition at line 132 of file simpletestlib.php.


Field Documentation

$expect

Definition at line 112 of file simpletestlib.php.


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