/** * Provides the map of the test items */ public function getTestMap() { $code = 200; try { $serviceContext = $this->getServiceContext(); $response = ['testMap' => $this->runnerService->getTestMap($serviceContext), 'success' => true]; } catch (common_Exception $e) { $response = $this->getErrorResponse($e); $code = $this->getErrorCode($e); } $this->returnJson($response, $code); }