PHP 클래스 NoHttpHeaderExpectation, simpletest

상속: extends HttpHeaderExpectation
파일 보기 프로젝트 열기: simpletest/simpletest 1 사용 예제들

공개 메소드들

메소드 설명
__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.