/** * Suspend the current test session if it is running. */ public function suspend() { $sessionMemento = $this->getSessionMemento(); $running = $this->isRunning(); parent::suspend(); if ($running) { $this->triggerEventChange($sessionMemento); $this->triggerEventPaused(); common_Logger::i("QTI Test with session ID '" . $this->getSessionId() . "' suspended."); } }