]> source.dussan.org Git - nextcloud-server.git/commitdiff
Also remove other unnecessary realpath() calls.
authorAndreas Fischer <bantu@owncloud.com>
Wed, 21 Aug 2013 08:53:18 +0000 (10:53 +0200)
committerAndreas Fischer <bantu@owncloud.com>
Wed, 21 Aug 2013 08:53:18 +0000 (10:53 +0200)
apps/files_encryption/tests/crypt.php
apps/files_encryption/tests/keymanager.php
apps/files_encryption/tests/util.php

index a4bb3054efeb09cfcaf78fe4c43b0143fa33e06e..188606ee1c5c10f677805b4e6b6e9a12b7f64539 100755 (executable)
@@ -67,12 +67,12 @@ class Test_Encryption_Crypt extends \PHPUnit_Framework_TestCase {
                $this->pass = \Test_Encryption_Crypt::TEST_ENCRYPTION_CRYPT_USER1;
 
                // set content for encrypting / decrypting in tests
-               $this->dataLong = file_get_contents(realpath(dirname(__FILE__) . '/../lib/crypt.php'));
+               $this->dataLong = file_get_contents(dirname(__FILE__) . '/../lib/crypt.php');
                $this->dataShort = 'hats';
-               $this->dataUrl = realpath(dirname(__FILE__) . '/../lib/crypt.php');
-               $this->legacyData = realpath(dirname(__FILE__) . '/legacy-text.txt');
-               $this->legacyEncryptedData = realpath(dirname(__FILE__) . '/legacy-encrypted-text.txt');
-               $this->legacyEncryptedDataKey = realpath(dirname(__FILE__) . '/encryption.key');
+               $this->dataUrl = dirname(__FILE__) . '/../lib/crypt.php';
+               $this->legacyData = dirname(__FILE__) . '/legacy-text.txt';
+               $this->legacyEncryptedData = dirname(__FILE__) . '/legacy-encrypted-text.txt';
+               $this->legacyEncryptedDataKey = dirname(__FILE__) . '/encryption.key';
                $this->randomKey = Encryption\Crypt::generateKey();
 
                $keypair = Encryption\Crypt::createKeypair();
index 6e8b7f2ff0ab911fbe2f2a568686cfa5fde1b8a7..308cdd403274aea6089327e11bb9fc9db38da7ba 100644 (file)
@@ -57,11 +57,11 @@ class Test_Encryption_Keymanager extends \PHPUnit_Framework_TestCase {
 
        function setUp() {
                // set content for encrypting / decrypting in tests
-               $this->dataLong = file_get_contents(realpath(dirname(__FILE__) . '/../lib/crypt.php'));
+               $this->dataLong = file_get_contents(dirname(__FILE__) . '/../lib/crypt.php');
                $this->dataShort = 'hats';
-               $this->dataUrl = realpath(dirname(__FILE__) . '/../lib/crypt.php');
-               $this->legacyData = realpath(dirname(__FILE__) . '/legacy-text.txt');
-               $this->legacyEncryptedData = realpath(dirname(__FILE__) . '/legacy-encrypted-text.txt');
+               $this->dataUrl = dirname(__FILE__) . '/../lib/crypt.php';
+               $this->legacyData = dirname(__FILE__) . '/legacy-text.txt';
+               $this->legacyEncryptedData = dirname(__FILE__) . '/legacy-encrypted-text.txt';
                $this->randomKey = Encryption\Crypt::generateKey();
 
                $keypair = Encryption\Crypt::createKeypair();
index 7f80de593382f6e4b856702ded75c61abca5baeb..8a00c51d5b62a5faec87b8b66b2d351f92b92743 100755 (executable)
@@ -69,12 +69,12 @@ class Test_Encryption_Util extends \PHPUnit_Framework_TestCase {
                $this->pass = \Test_Encryption_Util::TEST_ENCRYPTION_UTIL_USER1;
 
                // set content for encrypting / decrypting in tests
-               $this->dataUrl = realpath(dirname(__FILE__) . '/../lib/crypt.php');
+               $this->dataUrl = dirname(__FILE__) . '/../lib/crypt.php';
                $this->dataShort = 'hats';
-               $this->dataLong = file_get_contents(realpath(dirname(__FILE__) . '/../lib/crypt.php'));
-               $this->legacyData = realpath(dirname(__FILE__) . '/legacy-text.txt');
-               $this->legacyEncryptedData = realpath(dirname(__FILE__) . '/legacy-encrypted-text.txt');
-               $this->legacyEncryptedDataKey = realpath(dirname(__FILE__) . '/encryption.key');
+               $this->dataLong = file_get_contents(dirname(__FILE__) . '/../lib/crypt.php');
+               $this->legacyData = dirname(__FILE__) . '/legacy-text.txt';
+               $this->legacyEncryptedData = dirname(__FILE__) . '/legacy-encrypted-text.txt';
+               $this->legacyEncryptedDataKey = dirname(__FILE__) . '/encryption.key';
                $this->legacyKey = "30943623843030686906\0\0\0\0";
 
                $keypair = Encryption\Crypt::createKeypair();