Class HttpUnwantedHeaderExpectation

Description

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

Located in /libraries/pear/simpletest/web_tester.php (line 251)

SimpleExpectation
   |
   --HttpHeaderExpectation
      |
      --HttpUnwantedHeaderExpectation
Variable Summary
Method Summary
 HttpUnwantedHeaderExpectation HttpUnwantedHeaderExpectation (string $unwanted)
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
Variables
mixed $_expected_header (line 252)

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

Redefinition of:
HttpHeaderExpectation::$_expected_value

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
SimpleExpectation::$_message
Methods
Constructor HttpUnwantedHeaderExpectation (line 259)

Sets the field and value to compare against.

HttpUnwantedHeaderExpectation HttpUnwantedHeaderExpectation (string $unwanted)
  • string $unwanted: Case insenstive trimmed header name.
test (line 269)

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 280)

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::_normaliseHeader()
 HttpHeaderExpectation::_testHeaderLine()
 HttpHeaderExpectation::_testHeaderValue()

Inherited From SimpleExpectation

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

Documentation generated on Fri, 11 Feb 2005 18:14:36 +0000 by phpDocumentor 1.3.0RC3