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


Public Member Functions | |
| IsAExpectation ($type, $message= '%s') | |
| _getType () | |
| test ($compare) | |
| _canonicalType ($type) | |
| testMessage ($compare) | |
Data Fields | |
| $_type | |
Definition at line 733 of file expectation.php.
| _canonicalType | ( | $ | type | ) |
Coerces type name into a gettype() match.
| string | $type | User type. |
Definition at line 777 of file expectation.php.

| _getType | ( | ) |
Accessor for type to check against.
Definition at line 752 of file expectation.php.

| IsAExpectation | ( | $ | type, |
| $ | message = '%s' |
||
| ) |
Sets the type to compare with.
| string | $type | Type or class name. |
| string | $message | Customised message on failure. public |
Definition at line 742 of file expectation.php.


| test | ( | $ | compare | ) |
Tests the expectation. True if the type or class matches the string value.
| string | $compare | Comparison value. |
Reimplemented from SimpleExpectation.
Reimplemented in NotAExpectation.
Definition at line 763 of file expectation.php.

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

| $_type |
Reimplemented in NotAExpectation.
Definition at line 734 of file expectation.php.