Fix tests and improve code coverate

This commit is contained in:
Alex Bilbie
2016-04-10 15:58:01 +01:00
parent 7a6d9a4510
commit 5969082963
10 changed files with 212 additions and 54 deletions

View File

@@ -44,4 +44,12 @@ class CryptTraitTest extends \PHPUnit_Framework_TestCase
$this->cryptStub->setPublicKey(new CryptKey(__DIR__ . '/Stubs/private.key'));
$this->cryptStub->doDecrypt('');
}
/**
* @expectedException \LogicException
*/
public function testNonExistentKey()
{
new CryptKey('foo/bar');
}
}