Class NoHttpHeaderExpectation

Description

Test for a specific HTTP header within a header block that should not be found.

Located in /web_tester.php (line 264)

SimpleExpectation
   |
   --HttpHeaderExpectation
      |
      --NoHttpHeaderExpectation
Method Summary
 NoHttpHeaderExpectation __construct (string $unwanted, [string $message = '%s'])
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
Variables

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$dumper
Methods
Constructor __construct (line 274)

Sets the field and value to compare against.

NoHttpHeaderExpectation __construct (string $unwanted, [string $message = '%s'])
  • string $unwanted: Case insenstive trimmed header name.
  • string $message: Optiona message override. Can use %s as a placeholder for the original message.

Redefinition of:
HttpHeaderExpectation::__construct()
Sets the field and value to compare against.
test (line 284)

Tests that the unwanted header is not found.

  • return: True if header present.
  • access: public
boolean test (mixed $compare)
  • mixed $compare: Raw header block to search.

Redefinition of:
HttpHeaderExpectation::test()
Tests the expectation. True if it matches a string value or an array value in any order.
testMessage (line 295)

Returns a human readable test message.

  • return: Description of success or failure.
  • access: public
string testMessage (mixed $compare)
  • mixed $compare: Raw header block to search.

Redefinition of:
HttpHeaderExpectation::testMessage()
Returns a human readable test message.

Inherited Methods

Inherited From HttpHeaderExpectation

 HttpHeaderExpectation::__construct()
 HttpHeaderExpectation::findHeader()
 HttpHeaderExpectation::getExpectation()
 HttpHeaderExpectation::normaliseHeader()
 HttpHeaderExpectation::test()
 HttpHeaderExpectation::testHeaderLine()
 HttpHeaderExpectation::testHeaderValue()
 HttpHeaderExpectation::testMessage()

Inherited From SimpleExpectation

 SimpleExpectation::__construct()
 SimpleExpectation::getDumper()
 SimpleExpectation::isExpectation()
 SimpleExpectation::overlayMessage()
 SimpleExpectation::test()
 SimpleExpectation::testMessage()

Documentation generated on Sun, 31 Oct 2010 16:33:04 -0500 by phpDocumentor 1.4.3