diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2017-12-08 20:25:02 +0100 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2017-12-20 17:43:45 +0100 |
commit | dfa52f3ed31696c58fdc85273f4408559233b19e (patch) | |
tree | 63ca4ac93f9fd6f3afe5a91ef25701391ec9e593 /tests/codeigniter/libraries/Encryption_test.php | |
parent | 3ecfcaa94bbae55fec8c2c9bbf8524c49816342f (diff) |
Refactoring tests
Diffstat (limited to 'tests/codeigniter/libraries/Encryption_test.php')
-rw-r--r-- | tests/codeigniter/libraries/Encryption_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codeigniter/libraries/Encryption_test.php b/tests/codeigniter/libraries/Encryption_test.php index 99c5d4b9d..8e411d9fa 100644 --- a/tests/codeigniter/libraries/Encryption_test.php +++ b/tests/codeigniter/libraries/Encryption_test.php @@ -151,7 +151,7 @@ class Encryption_test extends CI_TestCase { 'hmac_key' => str_repeat("\x0", 16) ); - $this->assertTrue(is_array($this->encryption->__get_params($params))); + $this->assertInternalType('array', $this->encryption->__get_params($params)); $params['base64'] = TRUE; $params['hmac_digest'] = 'sha512'; @@ -257,7 +257,7 @@ class Encryption_test extends CI_TestCase { return $this->markTestSkipped('ext/mcrypt is deprecated since PHP 7.1 and will generate notices here.'); } - $this->assertTrue(is_resource($this->encryption->__driver_get_handle('mcrypt', 'rijndael-128', 'cbc'))); + $this->assertInternalType('resource', $this->encryption->__driver_get_handle('mcrypt', 'rijndael-128', 'cbc')); } // -------------------------------------------------------------------- |