public function __invoke($params)
 {
     //Set diagnostic config
     $extension = \common_ext_ExtensionsManager::singleton()->getExtensionById('taoClientDiagnostic');
     $config = $extension->getConfig('clientDiag');
     $extension->setConfig('clientDiag', array_merge($config, array('performances' => array('samples' => array('taoClientDiagnostic/tools/performances/data/sample1/', 'taoClientDiagnostic/tools/performances/data/sample2/', 'taoClientDiagnostic/tools/performances/data/sample3/'), 'occurrences' => 10, 'timeout' => 30, 'optimal' => 0.05, 'threshold' => 0.75), 'bandwidth' => array('unit' => 0.16, 'ideal' => 45, 'max' => 100))));
     $serviceManager = ServiceManager::getServiceManager();
     //Set diagnostic authorization
     $authService = new Anonymous();
     $authService->setServiceManager($serviceManager);
     $serviceManager->register(Authorization::SERVICE_ID, $authService);
     //Set diagnostic storage
     $storageService = new DiagnosticStorage(array('persistence' => 'default'));
     $storageService->setServiceManager($serviceManager);
     $serviceManager->register(Storage::SERVICE_ID, $storageService);
     return new \common_report_Report(\common_report_Report::TYPE_SUCCESS, 'Diagnostic settings added to Proctoring extension');
 }
 public function testGetAuthorizationUrl()
 {
     $this->setExpectedException('oat\\taoClientDiagnostic\\exception\\InvalidCallException');
     $this->instance->getAuthorizationUrl('urlFixture');
 }