getProviderKey() public method

Returns the provider key.
public getProviderKey ( ) : string
return string The provider key
 public function testConstructor()
 {
     $token = new PreAuthenticatedToken('foo', 'bar', 'key');
     $this->assertFalse($token->isAuthenticated());
     $token = new PreAuthenticatedToken('foo', 'bar', 'key', array('ROLE_FOO'));
     $this->assertTrue($token->isAuthenticated());
     $this->assertEquals(array(new Role('ROLE_FOO')), $token->getRoles());
     $this->assertEquals('key', $token->getProviderKey());
 }
 public function it_supports_token(PreAuthenticatedToken $token, $providerKey)
 {
     $token->getProviderKey()->willReturn($providerKey);
     $this->supportsToken($token, $providerKey)->shouldBe(true);
 }