PHP Класс NoHttpHeaderExpectation, simpletest

Наследование: extends HttpHeaderExpectation
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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() публичный Метод

Tests that the unwanted header is not found.
public test ( mixed $compare ) : boolean
$compare mixed Raw header block to search.
Результат boolean True if header present.

testMessage() публичный Метод

Returns a human readable test message.
public testMessage ( mixed $compare ) : string
$compare mixed Raw header block to search.
Результат string Description of success or failure.