Class HttpHeaderPatternExpectation

Description

Test for a specific HTTP header within a header block.

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

SimpleExpectation
   |
   --HttpHeaderExpectation
      |
      --HttpHeaderPatternExpectation
Method Summary
 HttpHeaderPatternExpectation HttpHeaderPatternExpectation (string $header, string $pattern)
 boolean _testHeaderValue (string $value, mixed $expected, mixed $pattern)
Variables
Methods
Constructor HttpHeaderPatternExpectation (line 303)

Sets the field and value to compare against.

  • access: public
HttpHeaderPatternExpectation HttpHeaderPatternExpectation (string $header, string $pattern)
  • string $header: Case insenstive header name.
  • string $pattern: Pattern to compare value against.
_testHeaderValue (line 314)

Tests the value part of the header.

  • return: True if matched.
  • access: protected
boolean _testHeaderValue (string $value, mixed $expected, mixed $pattern)
  • string $value: Value to test.
  • mixed $pattern: Pattern to test against.

Redefinition of:
HttpHeaderExpectation::_testHeaderValue()
Tests the value part of the header.

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