Kraken\_Unit\Runtime\RuntimeModelTest::testProtectedApiStartLoop_StartsLoop_WhenNeeded PHP Method

testProtectedApiStartLoop_StartsLoop_WhenNeeded() public method

    public function testProtectedApiStartLoop_StartsLoop_WhenNeeded()
    {
        $loop = $this->getMock(Loop::class, [], [], '', false);
        $loop->expects($this->once())->method('start');
        $runtime = $this->createModel([], ['getLoop']);
        $runtime->expects($this->once())->method('getLoop')->will($this->returnValue($loop));
        $next = RuntimeModel::LOOP_STATE_STARTED;
        $this->setProtectedProperty($runtime, 'loopNextState', [$next]);
        $this->callProtectedMethod($runtime, 'startLoop');
    }
RuntimeModelTest