|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| TextExpectation ($substring, $message= '%s') | |
| _getSubstring () | |
| test ($compare) | |
| testMessage ($compare) | |
| _describeTextMatch ($substring, $subject) | |
Data Fields | |
| $_substring | |
Definition at line 310 of file web_tester.php.
| _describeTextMatch | ( | $ | substring, |
| $ | subject | ||
| ) |
Describes a pattern match including the string found and it's position.
| string | $substring | Text to search for. |
| string | $subject | Subject to search. protected |
Definition at line 369 of file web_tester.php.


| _getSubstring | ( | ) |
Accessor for the substring.
Definition at line 329 of file web_tester.php.

| test | ( | $ | compare | ) |
Tests the expectation. True if the text contains the substring.
| string | $compare | Comparison value. |
Reimplemented from SimpleExpectation.
Reimplemented in NoTextExpectation.
Definition at line 340 of file web_tester.php.

| testMessage | ( | $ | compare | ) |
Returns a human readable test message.
| mixed | $compare | Comparison value. |
Reimplemented from SimpleExpectation.
Reimplemented in NoTextExpectation.
Definition at line 351 of file web_tester.php.

| TextExpectation | ( | $ | substring, |
| $ | message = '%s' |
||
| ) |
Sets the value to compare against.
| string | $substring | Text to search for. |
| string | $message | Customised message on failure. public |
Definition at line 319 of file web_tester.php.


| $_substring |
Definition at line 311 of file web_tester.php.