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
Variable Summary
Method Summary
 NoHttpHeaderExpectation NoHttpHeaderExpectation (string $unwanted, [string $message = '%s'])
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
Variables
mixed $_expected_header (line 265)

Redefinition of:
HttpHeaderExpectation::$_expected_header
mixed $_expected_value (line 266)

Redefinition of:
HttpHeaderExpectation::$_expected_value

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
SimpleExpectation::$_message
Methods
Constructor NoHttpHeaderExpectation (line 274)

Sets the field and value to compare against.

NoHttpHeaderExpectation NoHttpHeaderExpectation (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.
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::HttpHeaderExpectation()
 HttpHeaderExpectation::test()
 HttpHeaderExpectation::testMessage()
 HttpHeaderExpectation::_findHeader()
 HttpHeaderExpectation::_getExpectation()
 HttpHeaderExpectation::_testHeaderValue()

Inherited From SimpleExpectation

 SimpleExpectation::SimpleExpectation()
 SimpleExpectation::isExpectation()
 SimpleExpectation::overlayMessage()
 SimpleExpectation::test()
 SimpleExpectation::testMessage()
 SimpleExpectation::_getDumper()

Documentation generated on Sun, 04 May 2008 09:22:28 -0500 by phpDocumentor 1.3.0