Kraken\_Unit\Loop\Bridge\React\ReactTimerTest::createApiMethodMock PHP Method

createApiMethodMock() protected method

protected createApiMethodMock ( string $method, callable $validator ) : ReactTimer
$method string
$validator callable
return Kraken\Loop\Bridge\React\ReactTimer
    protected function createApiMethodMock($method, callable $validator)
    {
        $timer = $this->createTimerMock();
        $react = new ReactTimer($timer);
        $timer->expects($this->once())->method($method)->will($this->returnCallback($validator));
        return $react;
    }