SimpleMock::expectCallCount PHP Method

expectCallCount() public method

The tally method is used to check this.
public expectCallCount ( string $method, integer $count, string $message = '%s' )
$method string Method call to test.
$count integer Number of times it should have been called at tally.
$message string Overridden message.
    public function expectCallCount($method, $count, $message = '%s')
    {
        $this->dieOnNoMethod($method, 'set expected call count');
        $message .= Mock::getExpectationLine();
        $this->expected_counts[strtolower($method)] = new CallCountExpectation($method, $count, $message);
    }