/**
* @covers GPGMailer::import()
* @covers GPGMailer::export()
*/
public function testImport()
{
// Instantiate GPGMailer:
$gpgMailer = new GPGMailer(new File(), ['homedir' => '~']);
$publicKey = file_get_contents(__DIR__ . '/public.key');
$fingerprint = $gpgMailer->import($publicKey);
$this->assertSame('61ED8025A6A602BED499590DE0585BBD212C89BF', $fingerprint);
$exported = $gpgMailer->export($fingerprint);
$this->assertSame($this->stripComment($publicKey), $this->stripComment($exported));
}