PHP Class MinimumCallCountExpectation, simpletest

Inheritance: extends SimpleExpectation
Afficher le fichier Open project: simpletest/simpletest

Méthodes publiques

Méthode 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 méthode

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 méthode

Tests the assertion. True if correct.
public test ( integer $compare ) : boolean
$compare integer Measured call count.
Résultat boolean True if enough.

testMessage() public méthode

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