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

Public Member Functions

 NotAExpectation ($type, $message= '%s')
 test ($compare)
 testMessage ($compare)

Data Fields

 $_type

Detailed Description

Definition at line 810 of file expectation.php.


Member Function Documentation

NotAExpectation ( type,
message = '%s' 
)

Sets the type to compare with.

Parameters:
string$typeType or class name.
string$messageCustomised message on failure. public

Definition at line 819 of file expectation.php.

Here is the call graph for this function:

test ( compare)

Tests the expectation. False if the type or class matches the string value.

Parameters:
string$compareComparison value.
Returns:
boolean True if different. public

Reimplemented from IsAExpectation.

Definition at line 830 of file expectation.php.

testMessage ( compare)

Returns a human readable test message.

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

Reimplemented from IsAExpectation.

Definition at line 841 of file expectation.php.

Here is the call graph for this function:


Field Documentation

$_type

Reimplemented from IsAExpectation.

Definition at line 811 of file expectation.php.


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