Kraken\_Unit\Runtime\RuntimeModelTest::testProtectedApiStopLoop_StopsLoop PHP Метод

testProtectedApiStopLoop_StopsLoop() публичный Метод

    public function testProtectedApiStopLoop_StopsLoop()
    {
        $loop = $this->getMock(Loop::class, [], [], '', false);
        $loop->expects($this->once())->method('stop');
        $runtime = $this->createModel([], ['getLoop']);
        $runtime->expects($this->once())->method('getLoop')->will($this->returnValue($loop));
        $this->callProtectedMethod($runtime, 'stopLoop');
    }
RuntimeModelTest