summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-02-21 18:05:52 +0100
committerAndrey Andreev <narf@bofh.bg>2013-02-21 18:05:52 +0100
commit452b668d4edda5ae04c16f494bffe09114afc3ba (patch)
tree24b467859e7af2a1790be6f3ec310a4c4c777aa2
parent82ad654c559630cee019cdec0fb6b732227cb91b (diff)
Add CI_Utf8::convert_to_utf8() test
-rw-r--r--tests/codeigniter/core/Utf8_test.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/codeigniter/core/Utf8_test.php b/tests/codeigniter/core/Utf8_test.php
new file mode 100644
index 000000000..caa7b6986
--- /dev/null
+++ b/tests/codeigniter/core/Utf8_test.php
@@ -0,0 +1,20 @@
+<?php
+
+class Utf8_test extends CI_TestCase {
+
+ public function set_up()
+ {
+ $this->utf8 = new Mock_Core_Utf8();
+ }
+
+ // --------------------------------------------------------------------
+
+ public function test_convert_to_utf8()
+ {
+ $this->assertEquals(
+ $this->utf8->convert_to_utf8('', 'WINDOWS-1251'),
+ 'тест'
+ );
+ }
+
+} \ No newline at end of file