Applied fixes from StyleCI

This commit is contained in:
Alex Bilbie
2016-02-22 03:00:50 -05:00
committed by StyleCI Bot
parent e2794c47af
commit 997d390f3d
16 changed files with 55 additions and 79 deletions

View File

@@ -9,8 +9,8 @@ class KeyCryptTest extends \PHPUnit_Framework_TestCase
public function testEncryptDecrypt()
{
$payload = 'alex loves whisky';
$encrypted = KeyCrypt::encrypt($payload, 'file://'.__DIR__.'/private.key');
$plainText = KeyCrypt::decrypt($encrypted, 'file://'.__DIR__.'/public.key');
$encrypted = KeyCrypt::encrypt($payload, 'file://' . __DIR__ . '/private.key');
$plainText = KeyCrypt::decrypt($encrypted, 'file://' . __DIR__ . '/public.key');
$this->assertNotEquals($payload, $encrypted);
$this->assertEquals($payload, $plainText);
@@ -21,7 +21,7 @@ class KeyCryptTest extends \PHPUnit_Framework_TestCase
*/
public function testBadPrivateKey()
{
KeyCrypt::encrypt('', 'file://'.__DIR__.'/public.key');
KeyCrypt::encrypt('', 'file://' . __DIR__ . '/public.key');
}
/**
@@ -29,6 +29,6 @@ class KeyCryptTest extends \PHPUnit_Framework_TestCase
*/
public function testBadPublicKey()
{
KeyCrypt::decrypt('', 'file://'.__DIR__.'/private.key');
KeyCrypt::decrypt('', 'file://' . __DIR__ . '/private.key');
}
}