diff options
author | Andrey Andreev <narf@devilix.net> | 2016-12-14 15:14:13 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-12-14 15:14:13 +0100 |
commit | 24c866628d0ce5463d7e8b4eba512fa9e7752dfd (patch) | |
tree | 39d65288647ecaae09e2b9bc6a15e34e53f7d7d4 /tests/codeigniter/core | |
parent | 26313bddee1fb67af10141671a47bbe703a025fd (diff) |
Drop all PHP 5.3-related code
Diffstat (limited to 'tests/codeigniter/core')
-rw-r--r-- | tests/codeigniter/core/compat/standard_test.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/codeigniter/core/compat/standard_test.php b/tests/codeigniter/core/compat/standard_test.php index a98460129..54424bb9b 100644 --- a/tests/codeigniter/core/compat/standard_test.php +++ b/tests/codeigniter/core/compat/standard_test.php @@ -10,11 +10,6 @@ class standard_test extends CI_TestCase { } $this->assertTrue(function_exists('array_column')); - - if ( ! is_php('5.4')) - { - $this->assertTrue(function_exists('hex2bin')); - } } // ------------------------------------------------------------------------ @@ -330,25 +325,6 @@ class standard_test extends CI_TestCase { array_column($input, 'b', 'a') ); } - - // ------------------------------------------------------------------------ - - /** - * hex2bin() tests - * - * @depends test_bootstrap - */ - public function test_hex2bin() - { - if (is_php('5.4')) - { - return $this->markTestSkipped('hex2bin() is already available on PHP 5.4'); - } - - $this->assertEquals("\x03\x04", hex2bin("0304")); - $this->assertEquals('', hex2bin('')); - $this->assertEquals("\x01\x02\x03", hex2bin(new FooHex())); - } } // ------------------------------------------------------------------------ @@ -368,11 +344,3 @@ class Bar { return 'first_name'; } } - -class FooHex { - - public function __toString() - { - return '010203'; - } -} |