Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'remove-tests-catch-fail' of https://github.com/Maks3w/zf2
Browse files Browse the repository at this point in the history
… into hotfix/tests-exceptions
  • Loading branch information
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/PublicKey/RsaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,9 @@ public function testRsaLoadsPassphrasedKeys()
'private_key_bits' => 512,
));

try {
$rsa = Rsa::factory(array(
'pass_phrase' => '0987654321',
'private_key' => $rsaOptions->getPrivateKey()->toString(),
));
} catch (Exception\RuntimeException $e) {
$this->fail('Passphrase loading of a private key failed');
}
Rsa::factory(array(
'pass_phrase' => '0987654321',
'private_key' => $rsaOptions->getPrivateKey()->toString(),
));
}
}

0 comments on commit 7852a86

Please sign in to comment.