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


Public Member Functions | |
| OutsideMarginExpectation ($value, $margin, $message= '%s') | |
| test ($compare) | |
| testMessage ($compare) | |
Definition at line 403 of file expectation.php.
| OutsideMarginExpectation | ( | $ | value, |
| $ | margin, | ||
| $ | message = '%s' |
||
| ) |
Sets the value to compare against and the fuzziness of the match. Used for comparing floating point values.
| mixed | $value | Test value to not match. |
| mixed | $margin | Fuzziness of match. |
| string | $message | Customised message on failure. public |
Definition at line 413 of file expectation.php.

| test | ( | $ | compare | ) |
Tests the expectation. True if it matches the held value.
| mixed | $compare | Comparison value. |
Reimplemented from WithinMarginExpectation.
Definition at line 424 of file expectation.php.

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