SimpleExpectation
└─HttpHeaderExpectation
public class HttpHeaderExpectation
extends SimpleExpectation
Constructor Summary | |
---|---|
HttpHeaderExpectation(string header, string value) Sets the field and value to compare against. |
Method Summary | |
---|---|
boolean | test(mixed compare) Tests the expectation. |
string | testMessage(mixed compare) Returns a human readable test message. |
Methods inherited from SimpleTest\SimpleExpectation | |
---|---|
overlayMessage, test, testMessage |
public HttpHeaderExpectation(string header, string value)
Sets the field and value to compare against.
public boolean test(mixed compare)
Tests the expectation. True if it matches a string value or an array value in any order.
public string testMessage(mixed compare)
Returns a human readable test message.
Test for a specific HTTP header within a header block.