PHP Class MaximumCallCountExpectation, simpletest

Inheritance: extends SimpleExpectation
Mostrar archivo Open project: simpletest/simpletest

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public method

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

testMessage() public method

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