Documentation

CountValidatorAbstract
in package

Table of Contents

$_expectation  : Expectation
Expectation for which this validator is assigned
$_limit  : int
Call count limit
__construct()  : mixed
Set Expectation object and upper call limit
isEligible()  : bool
Checks if the validator can accept an additional nth call
validate()  : bool
Validate the call count against this validator

Properties

Methods

isEligible()

Checks if the validator can accept an additional nth call

public isEligible(int $n) : bool
Parameters
$n : int
Return values
bool

validate()

Validate the call count against this validator

public abstract validate(int $n) : bool
Parameters
$n : int
Return values
bool

Search results