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


Public Member Functions | |
| FieldExpectation ($value, $message= '%s') | |
| test ($compare) | |
| _isSingle ($value) | |
| _testSingle ($compare) | |
| _testMultiple ($compare) | |
| testMessage ($compare) | |
Data Fields | |
| $_value | |
Definition at line 23 of file web_tester.php.
| _isSingle | ( | $ | value | ) |
Tests for valid field comparisons with a single option.
| mixed | $value | Value to type check. |
Definition at line 69 of file web_tester.php.

| _testMultiple | ( | $ | compare | ) |
List comparison for multivalue field.
| mixed | $compare | List in any order to test against. |
Definition at line 95 of file web_tester.php.

| _testSingle | ( | $ | compare | ) |
String comparison for simple field with a single option.
| mixed | $compare | String to test against. |
Definition at line 79 of file web_tester.php.


| FieldExpectation | ( | $ | value, |
| $ | message = '%s' |
||
| ) |
Sets the field value to compare against.
| mixed | $value | Test value to match. Can be an expectation for say pattern matching. |
| string | $message | Optiona message override. Can use s as a placeholder for the original message. public |
Definition at line 34 of file web_tester.php.

| test | ( | $ | compare | ) |
Tests the expectation. True if it matches a string value or an array value in any order.
| mixed | $compare | Comparison value. False for an unset field. |
Reimplemented from SimpleExpectation.
Definition at line 50 of file web_tester.php.


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

| $_value |
Definition at line 24 of file web_tester.php.