/**
  * Test CommunicationChannel::processOutput
  */
 public function testProcessOutput()
 {
     $service = new QtiCommunicationService([]);
     $channel = new CommunicationChannel();
     $channel2 = new CommunicationChannel2();
     $channel3 = new CommunicationChannel2();
     $service->attachChannel($channel, QtiCommunicationService::CHANNEL_TYPE_OUTPUT);
     $service->attachChannel($channel2, QtiCommunicationService::CHANNEL_TYPE_OUTPUT);
     $service->attachChannel($channel3, QtiCommunicationService::CHANNEL_TYPE_INPUT);
     //should not be called
     $context = $this->getQtiRunnerServiceContext(AssessmentTestSessionState::SUSPENDED);
     $responses = $service->processOutput($context);
     $this->assertEquals([['channel' => 'TestChannel', 'message' => 'Channel 1 output'], ['channel' => 'TestChannel2', 'message' => 'Channel 2 output']], $responses);
 }