PHP 클래스 MaximumCallCountExpectation, simpletest

상속: extends SimpleExpectation
파일 보기 프로젝트 열기: simpletest/simpletest

공개 메소드들

메소드 설명
__construct ( string $method, integer $count, string $message = '%s' ) Stashes the method and expected count for later reporting.
test ( integer $compare ) : boolean Tests the assertion. True if correct.
testMessage ( integer $compare ) : string Reports the comparison.

메소드 상세

__construct() 공개 메소드

Stashes the method and expected count for later reporting.
public __construct ( string $method, integer $count, string $message = '%s' )
$method string Name of method to confirm against.
$count integer Minimum number of calls.
$message string Custom error message.

test() 공개 메소드

Tests the assertion. True if correct.
public test ( integer $compare ) : boolean
$compare integer Measured call count.
리턴 boolean True if not over.

testMessage() 공개 메소드

Reports the comparison.
public testMessage ( integer $compare ) : string
$compare integer Measured call count.
리턴 string Message to show.