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

Public Member Functions | |
| SimpleExpectation ($message= '%s') | |
| test ($compare) | |
| testMessage ($compare) | |
| overlayMessage ($compare, $dumper) | |
| & | _getDumper () |
Static Public Member Functions | |
| isExpectation ($expectation) | |
Data Fields | |
| $_dumper = false | |
| $_message | |
Definition at line 23 of file expectation.php.
| & _getDumper | ( | ) |
Accessor for the dumper.
Definition at line 76 of file expectation.php.

| isExpectation | ( | $ | expectation | ) | [static] |
Test to see if a value is an expectation object. A useful utility method.
| mixed | $expectation | Hopefully an Epectation class. |
Definition at line 94 of file expectation.php.


| overlayMessage | ( | $ | compare, |
| $ | dumper | ||
| ) |
Overlays the generated message onto the stored user message. An additional message can be interjected.
| mixed | $compare | Comparison value. |
| SimpleDumper | $dumper | For formatting the results. |
Definition at line 66 of file expectation.php.

| SimpleExpectation | ( | $ | message = '%s' | ) |
Creates a dumper for displaying values and sets the test message.
| string | $message | Customised message on failure. |
Definition at line 32 of file expectation.php.

| test | ( | $ | compare | ) |
Tests the expectation. True if correct.
| mixed | $compare | Comparison value. |
Reimplemented in MethodExistsExpectation, NotAExpectation, IsAExpectation, NoPatternExpectation, PatternExpectation, NotIdenticalExpectation, ContainsEmptyTag, IdenticalExpectation, ContainsTagWithContents, DoesNotContainTagWithAttributes, OutsideMarginExpectation, NoTextExpectation, ContainsSelectExpectation, WithinMarginExpectation, TextExpectation, NotEqualExpectation, ContainsTagWithAttributes, NoHttpHeaderExpectation, EqualExpectation, ContainsTagWithAttribute, FalseExpectation, HttpHeaderExpectation, TrueExpectation, CheckSpecifiedFieldsExpectation, FailedExpectation, ArraysHaveSameValuesExpectation, AnythingExpectation, ExceptionExpectation, IgnoreWhitespaceExpectation, TimeModifiedExpectation, and FieldExpectation.
Definition at line 43 of file expectation.php.
| testMessage | ( | $ | compare | ) |
Returns a human readable test message.
| mixed | $compare | Comparison value. |
Reimplemented in MethodExistsExpectation, NotAExpectation, IsAExpectation, NoPatternExpectation, PatternExpectation, NotIdenticalExpectation, ContainsEmptyTag, IdenticalExpectation, ContainsTagWithContents, ReferenceExpectation, OutsideMarginExpectation, NoTextExpectation, WithinMarginExpectation, TextExpectation, NotEqualExpectation, NoHttpHeaderExpectation, EqualExpectation, HttpHeaderExpectation, FalseExpectation, XMLStructureExpectation, TrueExpectation, CheckSpecifiedFieldsExpectation, FailedExpectation, ArraysHaveSameValuesExpectation, AnythingExpectation, FieldExpectation, ExceptionExpectation, IgnoreWhitespaceExpectation, and TimeModifiedExpectation.
Definition at line 54 of file expectation.php.

| $_dumper = false |
Definition at line 24 of file expectation.php.
| $_message |
Definition at line 25 of file expectation.php.