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

Public Member Functions

 NoTextExpectation ($substring, $message= '%s')
 test ($compare)
 testMessage ($compare)

Detailed Description

Definition at line 384 of file web_tester.php.


Member Function Documentation

NoTextExpectation ( substring,
message = '%s' 
)

Sets the reject pattern

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

Definition at line 392 of file web_tester.php.

Here is the call graph for this function:

test ( compare)

Tests the expectation. False if the substring appears in the text.

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

Reimplemented from TextExpectation.

Definition at line 403 of file web_tester.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 TextExpectation.

Definition at line 414 of file web_tester.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