PHP Class NoHttpHeaderExpectation, simpletest

Inheritance: extends HttpHeaderExpectation
Afficher le fichier Open project: simpletest/simpletest Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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 méthode

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

testMessage() public méthode

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