summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/tests/encryption.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-10-24 10:16:32 -0700
committerLukas Reschke <lukas@statuscode.ch>2012-10-24 10:16:32 -0700
commit515e1b467e58337067ee3a4a8945f449d3c2ef3a (patch)
tree06ed218ada64bb696e9c6ce22baa79b827df8530 /apps/files_encryption/tests/encryption.php
parent7454186806d8ebc440f7604d1ff517433bdd9faa (diff)
parent561cbb2de69a31934c22fc28332b5a14b6fcfc68 (diff)
downloadnextcloud-server-515e1b467e58337067ee3a4a8945f449d3c2ef3a.tar.gz
nextcloud-server-515e1b467e58337067ee3a4a8945f449d3c2ef3a.zip
Merge pull request #81 from fmms/master
Codestyle add some needed spaces.
Diffstat (limited to 'apps/files_encryption/tests/encryption.php')
-rw-r--r--apps/files_encryption/tests/encryption.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/tests/encryption.php b/apps/files_encryption/tests/encryption.php
index 89397f6ef2c..a7bc2df0e12 100644
--- a/apps/files_encryption/tests/encryption.php
+++ b/apps/files_encryption/tests/encryption.php
@@ -19,7 +19,7 @@ class Test_Encryption extends UnitTestCase {
$chunk=substr($source,0,8192);
$encrypted=OC_Crypt::encrypt($chunk,$key);
- $this->assertEqual(strlen($chunk),strlen($encrypted));
+ $this->assertEqual(strlen($chunk), strlen($encrypted));
$decrypted=OC_Crypt::decrypt($encrypted,$key);
$decrypted=rtrim($decrypted, "\0");
$this->assertEqual($decrypted,$chunk);
@@ -66,7 +66,7 @@ class Test_Encryption extends UnitTestCase {
$this->assertEqual($decrypted,$source);
$encrypted=OC_Crypt::blockEncrypt($source,$key);
- $decrypted=OC_Crypt::blockDecrypt($encrypted,$key,strlen($source));
+ $decrypted=OC_Crypt::blockDecrypt($encrypted,$key, strlen($source));
$this->assertEqual($decrypted,$source);
}
}