PHP 클래스 NotAExpectation, simpletest

Will succeed if the type does not match.
상속: extends IsAExpectation
파일 보기 프로젝트 열기: simpletest/simpletest 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $type, string $message = '%s' ) Sets the type to compare with.
test ( string $compare ) : boolean Tests the expectation. False if the type or class matches the string value.
testMessage ( mixed $compare ) : string Returns a human readable test message.

메소드 상세

__construct() 공개 메소드

Sets the type to compare with.
public __construct ( string $type, string $message = '%s' )
$type string Type or class name.
$message string Customised message on failure.

test() 공개 메소드

Tests the expectation. False if the type or class matches the string value.
public test ( string $compare ) : boolean
$compare string Comparison value.
리턴 boolean True if different.

testMessage() 공개 메소드

Returns a human readable test message.
public testMessage ( mixed $compare ) : string
$compare mixed Comparison value.
리턴 string Description of success or failure.