/** @dataProvider provideStorage */
 public function testUserClaims(UserCredentialsInterface $storage)
 {
     $profile = $storage->getUserClaims('oauth_test_user', 'profile');
     $this->assertEquals(array('profile' => 'profile'), $profile);
     $email = $storage->getUserClaims('oauth_test_user', 'email');
     $this->assertEquals(array('email' => 'doctrine@zfcampus'), $email);
     $address = $storage->getUserClaims('oauth_test_user', 'address');
     $this->assertEquals(array('country' => 'US'), $address);
     $phone = $storage->getUserClaims('oauth_test_user', 'phone');
     $this->assertEquals(array('phone_number' => 'phone'), $phone);
     $this->assertFalse($storage->getUserClaims('oauth_test_user', 'invalid'));
     $this->assertFalse($storage->getUserClaims('invalid', 'invalid'));
     $this->assertTrue($storage->getUserClaims('event_stop_propagation', ''));
 }
 /** @dataProvider provideStorage */
 public function testUserClaims(UserCredentialsInterface $storage)
 {
     // FIXME:  openid not supported
     $this->assertFalse(false);
     return;
     $claims = $storage->getUserClaims('oauth_test_user', 'profile');
     $this->assertTrue(is_array($claims));
     $claims = $storage->getUserClaims('oauth_test_user', 'email');
     $this->assertTrue(is_array($claims));
     $claims = $storage->getUserClaims('oauth_test_user', 'address');
     $this->assertTrue(is_array($claims));
     $claims = $storage->getUserClaims('oauth_test_user', 'phone');
     $this->assertTrue(is_array($claims));
     $this->assertFalse($storage->getUserClaims('oauth_test_user', 'invalid'));
     $this->assertFalse($claims = $storage->getUserClaims('invalid', 'invalid'));
 }