SimpleMock::expectMaximumCallCount PHP Method

expectMaximumCallCount() public method

Sets the number of times a method may be called before a test failure is triggered.
public expectMaximumCallCount ( string $method, integer $count, string $message = '%s' )
$method string Method call to test.
$count integer Most number of times it should have been called.
$message string Overridden message.
    public function expectMaximumCallCount($method, $count, $message = '%s')
    {
        $this->dieOnNoMethod($method, 'set maximum call count');
        $message .= Mock::getExpectationLine();
        $this->max_counts[strtolower($method)] = new MaximumCallCountExpectation($method, $count, $message);
    }