Initial import
This commit is contained in:
19
tests/mocks/core/utf8.php
Normal file
19
tests/mocks/core/utf8.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class Mock_Core_Utf8 extends CI_Utf8 {
|
||||
|
||||
/**
|
||||
* We need to define UTF8_ENABLED the same way that
|
||||
* CI_Utf8 constructor does.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
if (defined('UTF8_ENABLED'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user