From 452b668d4edda5ae04c16f494bffe09114afc3ba Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 21 Feb 2013 19:05:52 +0200 Subject: Add CI_Utf8::convert_to_utf8() test --- tests/codeigniter/core/Utf8_test.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/codeigniter/core/Utf8_test.php (limited to 'tests/codeigniter/core/Utf8_test.php') 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 @@ +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 -- cgit v1.2.3-24-g4f1b