Taufan Aditya | 7756af5 | 2012-05-15 23:57:05 +0700 | [diff] [blame] | 1 | <?php |
| 2 | |
| 3 | class Mock_Core_Utf8 extends CI_Utf8 { |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 4 | |
Taufan Aditya | 7756af5 | 2012-05-15 23:57:05 +0700 | [diff] [blame] | 5 | /** |
Andrey Andreev | eb555ed | 2014-02-12 19:25:01 +0200 | [diff] [blame] | 6 | * We need to define UTF8_ENABLED the same way that |
| 7 | * CI_Utf8 constructor does. |
Taufan Aditya | 7756af5 | 2012-05-15 23:57:05 +0700 | [diff] [blame] | 8 | * |
| 9 | * @covers CI_Utf8::__construct() |
| 10 | */ |
| 11 | public function __construct() |
| 12 | { |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 13 | defined('UTF8_ENABLED') OR define('UTF8_ENABLED', TRUE); |
Taufan Aditya | 7756af5 | 2012-05-15 23:57:05 +0700 | [diff] [blame] | 14 | } |
| 15 | |
Andrey Andreev | 291676b | 2014-01-16 18:39:52 +0200 | [diff] [blame] | 16 | public function is_ascii_test($str) |
| 17 | { |
| 18 | return $this->_is_ascii($str); |
| 19 | } |
| 20 | |
Taufan Aditya | 7756af5 | 2012-05-15 23:57:05 +0700 | [diff] [blame] | 21 | } |