blob: 3a6282e1d9a588439517c60f6328edf0b1214d40 [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 public function __construct()
10 {
Andrey Andreevbb3edf12014-02-20 17:51:41 +020011 if (defined('UTF8_ENABLED'))
12 {
13 return;
14 }
15
16 parent::__construct();
Taufan Aditya7756af52012-05-15 23:57:05 +070017 }
18
Taufan Aditya7756af52012-05-15 23:57:05 +070019}