public function check(RunnerServiceContext $context)
    {
        parent::check($context);

        $state = $context->getTestSession()->getState();

        if ($state == AssessmentTestSessionState::SUSPENDED) {
            throw new QtiRunnerPausedException();
        }

        return true;
    }
public function check(RunnerServiceContext $context)
    {
        parent::check($context);

        $state = $context->getTestSession()->getState();

        if ($state == AssessmentTestSessionState::SUSPENDED) {
            throw new QtiRunnerPausedException();
        }

        return true;
    }
public function check ( RunnerServiceContext $ context ) { parent :: check ( $ context ) ; $ state = $ context -> getTestSession ( ) -> getState ( ) ; if ( $ state == AssessmentTestSessionState :: SUSPENDED ) { throw new QtiRunnerPausedException ( ) ; } return true ; }
Check whether the test is in a runnable state.

@param RunnerServiceContext $context
@return bool
@throws \common_Exception
@throws \oat\taoQtiTest\models\runner\QtiRunnerClosedException
@throws QtiRunnerPausedException
Check whether the test is in a runnable state .