diff options
author | Andrey Andreev <narf@devilix.net> | 2014-02-10 05:59:54 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-02-10 05:59:54 +0100 |
commit | 4b450651ed3b9413be0245401da706c218850f53 (patch) | |
tree | dddc1a22e67c3ee8b808ecca33f66de6d6672933 /tests | |
parent | fc1e2780b2e559b596d6a86257c62c030c6e3cc7 (diff) |
CI_Encryption: Rename 'base64' parameter to 'raw_data' and add docs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/codeigniter/libraries/Encryption_test.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/codeigniter/libraries/Encryption_test.php b/tests/codeigniter/libraries/Encryption_test.php index 6bcf17b14..54db2b42d 100644 --- a/tests/codeigniter/libraries/Encryption_test.php +++ b/tests/codeigniter/libraries/Encryption_test.php @@ -151,20 +151,22 @@ class Encryption_test extends CI_TestCase { 'mode' => 'cbc', 'key' => str_repeat("\x0", 16), 'iv' => str_repeat("\x0", 16), - 'base64' => FALSE, + 'raw_data' => TRUE, 'hmac_key' => str_repeat("\x0", 16), 'hmac_digest' => 'sha256' ); $output = $this->encryption->__get_params($params); - unset($output['handle']); + unset($output['handle'], $params['raw_data']); + $params['base64'] = FALSE; $this->assertEquals($params, $output); // HMAC disabled unset($params['hmac_key'], $params['hmac_digest']); - $params['hmac'] = FALSE; + $params['hmac'] = $params['raw_data'] = FALSE; $output = $this->encryption->__get_params($params); - unset($output['handle'], $params['hmac']); + unset($output['handle'], $params['hmac'], $params['raw_data']); + $params['base64'] = TRUE; $params['hmac_digest'] = $params['hmac_key'] = NULL; $this->assertEquals($params, $output); } |