blob: c8214a62a44c2bee62569eb2451e5832d7511367 [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
Taufan Aditya7756af52012-05-15 23:57:05 +070016}