public function testInvalidateUserResourcesWithEmptyAppId()
 {
     $token = BasicSecurityToken::createFromValues('owner', 'viewer', null, 'domain', 'appUrl', '1', 'default');
     $token->setAuthenticationMode(AuthenticationMode::$OAUTH_CONSUMER_REQUEST);
     $request = new RemoteContentRequest('http://url');
     $request->setToken($token);
     $request->setAuthType(RemoteContentRequest::$AUTH_SIGNED);
     $this->service->markResponse($request);
     $opensocialIds = array('owner');
     $this->service->invalidateUserResources($opensocialIds, $token);
     $this->assertFalse($this->service->isValid($request));
     $this->service->markResponse($request);
     $this->assertTrue($this->service->isValid($request));
 }
 public function __construct(Cache $cache)
 {
     $this->cache = $cache;
     $this->invalidationEntry = Cache::createCache(Shindig_Config::get('data_cache'), 'InvalidationEntry');
     if (self::$makerCache == null) {
         self::$makerCache = Cache::createCache(Shindig_Config::get('data_cache'), 'MarkerCache');
         $value = self::$makerCache->expiredGet('marker');
         if ($value['found']) {
             self::$marker = $value['data'];
         } else {
             self::$marker = 0;
             self::$makerCache->set('marker', self::$marker);
         }
     }
 }