Kraken\Test\TUnit::expectCallableExactly PHP Method

expectCallableExactly() public method

Creates a callback that must be called $amount times or the test will fail.
public expectCallableExactly ( $amount ) : callable | PHPUnit_Framework_MockObject_MockObject
$amount
return callable | PHPUnit_Framework_MockObject_MockObject
    public function expectCallableExactly($amount)
    {
        $mock = $this->createCallableMock();
        $mock->expects($this->exactly($amount))->method('__invoke');
        return $mock;
    }