Kraken\Test\TUnit::expectCallableOnce PHP Method

expectCallableOnce() public method

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