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


Public Member Functions | |
| PatternExpectation ($pattern, $message= '%s') | |
| _getPattern () | |
| test ($compare) | |
| testMessage ($compare) | |
| _describePatternMatch ($pattern, $subject) | |
Data Fields | |
| $_pattern | |
Definition at line 594 of file expectation.php.
| _describePatternMatch | ( | $ | pattern, |
| $ | subject | ||
| ) |
Describes a pattern match including the string found and it's position.
| string | $pattern | Regex to match against. |
| string | $subject | Subject to search. protected |
Definition at line 653 of file expectation.php.


| _getPattern | ( | ) |
Accessor for the pattern.
Definition at line 613 of file expectation.php.

| PatternExpectation | ( | $ | pattern, |
| $ | message = '%s' |
||
| ) |
Sets the value to compare against.
| string | $pattern | Pattern to search for. |
| string | $message | Customised message on failure. public |
Definition at line 603 of file expectation.php.


| test | ( | $ | compare | ) |
Tests the expectation. True if the Perl regex matches the comparison value.
| string | $compare | Comparison value. |
Reimplemented from SimpleExpectation.
Reimplemented in NoPatternExpectation.
Definition at line 624 of file expectation.php.


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

| $_pattern |
Definition at line 595 of file expectation.php.