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

Public Member Functions

 ReferenceExpectation (&$value, $message= '%s')
 test (&$compare)
 testMessage ($compare)
 _getValue ()

Data Fields

 $_value

Detailed Description

Definition at line 449 of file expectation.php.


Member Function Documentation

_getValue ( )

Definition at line 490 of file expectation.php.

ReferenceExpectation ( &$  value,
message = '%s' 
)

Sets the reference value to compare against.

Parameters:
mixed$valueTest reference to match.
string$messageCustomised message on failure. public

Definition at line 458 of file expectation.php.

Here is the call graph for this function:

test ( &$  compare)

Tests the expectation. True if it exactly references the held value.

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

Definition at line 470 of file expectation.php.

Here is the call graph for this function:

Here is the caller 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 481 of file expectation.php.

Here is the call graph for this function:


Field Documentation

$_value

Definition at line 450 of file expectation.php.


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