/**
* @test
*
* @expectedException \InvalidArgumentException
*
* @uses \Lcobucci\JWT\Signer\Ecdsa\KeyParser::__construct
* @uses \Lcobucci\JWT\Signer\Key
*
* @covers \Lcobucci\JWT\Signer\Ecdsa\KeyParser::getPublicKey
* @covers \Lcobucci\JWT\Signer\Ecdsa\KeyParser::getKeyContent
*/
public function getPublicKeyShouldRaiseExceptionWhenAWrongKeyWasGiven()
{
$this->publicKeySerializer->expects($this->never())->method('parse');
$parser = new KeyParser($this->privateKeySerializer, $this->publicKeySerializer);
$parser->getPublicKey($this->getPrivateKey());
}