Ejemplo n.º 1
0
 public function itOnlyAcceptsHTTPS()
 {
     $login_controller = mock('Tuleap\\OpenIDConnectClient\\LoginController');
     $request = mock('HTTPRequest');
     $request->setReturnValue('isSSL', false);
     $GLOBALS['Response']->expectOnce('redirect');
     $router = new Router($login_controller);
     $router->route($request);
 }
 public function process(HTTPRequest $request)
 {
     $this->loadLibrary();
     $user_manager = UserManager::instance();
     $provider_manager = new ProviderManager(new ProviderDao());
     $user_mapping_manager = new UserMappingManager(new UserMappingDao());
     $login_controller = new LoginController($user_manager, $provider_manager, $user_mapping_manager);
     $router = new Router($login_controller);
     $router->route($request);
 }