PHP Class NoHttpHeaderExpectation, simpletest

Inheritance: extends HttpHeaderExpectation
Datei anzeigen Open project: simpletest/simpletest Class Usage Examples

Public Methods

Method Description
__construct ( string $unwanted, string $message = '%s' ) Sets the field and value to compare against.
test ( mixed $compare ) : boolean Tests that the unwanted header is not found.
testMessage ( mixed $compare ) : string Returns a human readable test message.

Method Details

__construct() public method

Sets the field and value to compare against.
public __construct ( string $unwanted, string $message = '%s' )
$unwanted string Case insenstive trimmed header name.
$message string Optional message override. Can use %s as a placeholder for the original message.

test() public method

Tests that the unwanted header is not found.
public test ( mixed $compare ) : boolean
$compare mixed Raw header block to search.
return boolean True if header present.

testMessage() public method

Returns a human readable test message.
public testMessage ( mixed $compare ) : string
$compare mixed Raw header block to search.
return string Description of success or failure.