Kraken\Test\TUnit::expectCallableTwice PHP Method

expectCallableTwice() public method

Creates a callback that must be called twice.
public expectCallableTwice ( ) : callable | PHPUnit_Framework_MockObject_MockObject
return callable | PHPUnit_Framework_MockObject_MockObject
    public function expectCallableTwice()
    {
        $mock = $this->createCallableMock();
        $mock->expects($this->exactly(2))->method('__invoke');
        return $mock;
    }