diff options
Diffstat (limited to 'tests/mocks/core/utf8.php')
-rw-r--r-- | tests/mocks/core/utf8.php | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/tests/mocks/core/utf8.php b/tests/mocks/core/utf8.php index a43138fbc..c8214a62a 100644 --- a/tests/mocks/core/utf8.php +++ b/tests/mocks/core/utf8.php @@ -3,29 +3,14 @@ class Mock_Core_Utf8 extends CI_Utf8 { /** - * We need to define several constants as - * the same process within CI_Utf8 class constructor. + * We need to define UTF8_ENABLED the same way that + * CI_Utf8 constructor does. * * @covers CI_Utf8::__construct() */ public function __construct() { defined('UTF8_ENABLED') OR define('UTF8_ENABLED', TRUE); - - if (extension_loaded('mbstring')) - { - defined('MB_ENABLED') OR define('MB_ENABLED', TRUE); - mb_internal_encoding('UTF-8'); - } - else - { - defined('MB_ENABLED') OR define('MB_ENABLED', FALSE); - } - } - - public function is_ascii_test($str) - { - return $this->_is_ascii($str); } }
\ No newline at end of file |