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

Public Member Functions

 TimeModifiedExpectation ($otherfields)
 test ($thing)
 testMessage ($thing)

Detailed Description

Expectation that checks an object for given values (normal equality test) plus a 'timemodified' field that is current (last second or two).

Definition at line 61 of file testcompletionlib.php.


Member Function Documentation

test ( compare)

Tests the expectation. True if correct.

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

Reimplemented from SimpleExpectation.

Definition at line 71 of file testcompletionlib.php.

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 86 of file testcompletionlib.php.

TimeModifiedExpectation ( otherfields)
Parameters:
array$otherfieldsArray key=>value of required object fields

Definition at line 67 of file testcompletionlib.php.


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