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

Public Member Functions

 NoPatternExpectation ($pattern, $message= '%s')
 test ($compare)
 testMessage ($compare)

Detailed Description

Definition at line 678 of file expectation.php.


Member Function Documentation

NoPatternExpectation ( pattern,
message = '%s' 
)

Sets the reject pattern

Parameters:
string$patternPattern to search for.
string$messageCustomised message on failure. public

Definition at line 686 of file expectation.php.

Here is the call graph for this function:

test ( compare)

Tests the expectation. False if the Perl regex matches the comparison value.

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

Reimplemented from PatternExpectation.

Definition at line 697 of file expectation.php.

Here is the caller graph for this function:

testMessage ( compare)

Returns a human readable test message.

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

Reimplemented from PatternExpectation.

Definition at line 708 of file expectation.php.

Here is the call graph for this function:


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