PHP Класс MaximumCallCountExpectation, simpletest

Наследование: extends SimpleExpectation
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.