blob: 30b78adfe18585c632cf13d235304af1d3634c20 [file] [log] [blame]
Taufan Aditya7756af52012-05-15 23:57:05 +07001<?php
2
3class Mock_Core_Utf8 extends CI_Utf8 {
Andrey Andreevf243ce12012-06-09 23:34:21 +03004
Taufan Aditya7756af52012-05-15 23:57:05 +07005 /**
Andrey Andreeveb555ed2014-02-12 19:25:01 +02006 * We need to define UTF8_ENABLED the same way that
7 * CI_Utf8 constructor does.
Taufan Aditya7756af52012-05-15 23:57:05 +07008 *
9 * @covers CI_Utf8::__construct()
10 */
11 public function __construct()
12 {
Andrey Andreevf243ce12012-06-09 23:34:21 +030013 defined('UTF8_ENABLED') OR define('UTF8_ENABLED', TRUE);
Taufan Aditya7756af52012-05-15 23:57:05 +070014 }
15
Andrey Andreev291676b2014-01-16 18:39:52 +020016 public function is_ascii_test($str)
17 {
18 return $this->_is_ascii($str);
19 }
20
Taufan Aditya7756af52012-05-15 23:57:05 +070021}