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

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

    public function testApiFail_CannotBeCalledMoreThanOnceInRow()
    {
        $ex = new Exception();
        $params = [];
        $super = $this->getMock(Supervisor::class, [], [], '', false);
        $loop = $this->getMock(Loop::class, [], [], '', false);
        $loop->expects($this->once())->method('onTick');
        $runtime = $this->createModel([], ['getSupervisor', 'getLoop', 'setLoopState']);
        $runtime->expects($this->once())->method('getSupervisor')->will($this->returnValue($super));
        $runtime->expects($this->once())->method('getLoop')->will($this->returnValue($loop));
        $runtime->expects($this->once())->method('setLoopState');
        $runtime->fail($ex, $params);
        $runtime->fail($ex, $params);
    }
RuntimeModelTest