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

Public Member Functions

 MethodExistsExpectation ($method, $message= '%s')
 test ($compare)
 testMessage ($compare)

Data Fields

 $_method

Detailed Description

Definition at line 853 of file expectation.php.


Member Function Documentation

MethodExistsExpectation ( method,
message = '%s' 
)

Sets the value to compare against.

Parameters:
string$methodMethod to check.
string$messageCustomised message on failure. public
Returns:
void

Definition at line 863 of file expectation.php.

Here is the call graph for this function:

test ( compare)

Tests the expectation. True if the method exists in the test object.

Parameters:
string$compareComparison method name.
Returns:
boolean True if correct. public

Reimplemented from SimpleExpectation.

Definition at line 874 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 SimpleExpectation.

Definition at line 885 of file expectation.php.

Here is the call graph for this function:


Field Documentation

$_method

Definition at line 854 of file expectation.php.


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