getServiceManager()->get(TestModelService::SERVICE_ID); $compiler = $testModelService->getOption(TestModelService::SUBSERVICE_COMPILATION); $compiler->setOption(CompilationService::OPTION_CLIENT_TESTRUNNER, false); $testModelService->setOption(TestModelService::SUBSERVICE_COMPILATION, $compiler); $this->getServiceManager()->register(TestModelService::SERVICE_ID, $testModelService); $testQtiExt = \common_ext_ExtensionsManager::singleton()->getExtensionById('taoQtiTest'); $testRunnerConfig = $testQtiExt->getConfig('testRunner'); $testRunnerConfig['test-session'] = '\\taoQtiTest_helpers_TestSession'; $testQtiExt->setConfig('testRunner', $testRunnerConfig); return new \common_report_Report(\common_report_Report::TYPE_SUCCESS, 'Old test runner activated'); } }