summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/core/Utf8_test.php
blob: caa7b69861ec0aed88e95718d8894d7d1348273a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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'),
			'тест'
		);
	}

}