SimpleExpectation
└─IsAExpectation
public class IsAExpectation
extends SimpleExpectation
Constructor Summary | |
---|---|
IsAExpectation(string type, string message) Sets the type to compare with. |
Method Summary | |
---|---|
boolean | test(string compare) Tests the expectation. |
string | testMessage(mixed compare) Returns a human readable test message. |
Methods inherited from SimpleTest\SimpleExpectation | |
---|---|
overlayMessage, test, testMessage |
public IsAExpectation(string type, string message)
Sets the type to compare with.
public boolean test(string compare)
Tests the expectation. True if the type or class matches the string value.
public string testMessage(mixed compare)
Returns a human readable test message.
Tests either type or class name if it's an object.