Moodle  2.2.1
http://www.collinsharper.com
NoHttpHeaderExpectation Class Reference
Inheritance diagram for NoHttpHeaderExpectation:
Collaboration diagram for NoHttpHeaderExpectation:

Public Member Functions

 NoHttpHeaderExpectation ($unwanted, $message= '%s')
 test ($compare)
 testMessage ($compare)

Data Fields

 $_expected_header
 $_expected_value

Detailed Description

Definition at line 264 of file web_tester.php.


Member Function Documentation

NoHttpHeaderExpectation ( unwanted,
message = '%s' 
)

Sets the field and value to compare against.

Parameters:
string$unwantedCase insenstive trimmed header name.
string$messageOptiona message override. Can use s as a placeholder for the original message.

Definition at line 274 of file web_tester.php.

Here is the call graph for this function:

test ( compare)

Tests that the unwanted header is not found.

Parameters:
mixed$compareRaw header block to search.
Returns:
boolean True if header present. public

Reimplemented from HttpHeaderExpectation.

Definition at line 284 of file web_tester.php.

Here is the call graph for this function:

testMessage ( compare)

Returns a human readable test message.

Parameters:
mixed$compareRaw header block to search.
Returns:
string Description of success or failure. public

Reimplemented from HttpHeaderExpectation.

Definition at line 295 of file web_tester.php.

Here is the call graph for this function:


Field Documentation

$_expected_header

Reimplemented from HttpHeaderExpectation.

Definition at line 265 of file web_tester.php.

$_expected_value

Reimplemented from HttpHeaderExpectation.

Definition at line 266 of file web_tester.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations