code: public function addEvent($testSessionId, $eventName, $data = null)
      {
          $extendedState = $this->getExtendedState($testSessionId);
          $eventId = $extendedState->addEvent($eventName, $data);
          $extendedState->save();
          return $eventId;
      }
docs: Add an event on top of the queue
  @param string $testSessionId
  @param string $eventName
  @param mixed $data
  @return string
  @throws \common_Exception