assertNotEquals($payload, $encrypted); $this->assertEquals($payload, $plainText); } /** * @expectedException \LogicException */ public function testBadPrivateKey() { KeyCrypt::encrypt('', 'file://'.__DIR__.'/public.key'); } /** * @expectedException \LogicException */ public function testBadPublicKey() { KeyCrypt::decrypt('', 'file://'.__DIR__.'/private.key'); } }