summaryrefslogtreecommitdiff
path: root/tests/Framework/Charset.php
blob: 9e3fad4d3a4eff5338360e3257f8aeb4720a01e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

/**
 * Test class to test rcube_charset class
 *
 * @package Tests
 */
class Framework_Charset extends PHPUnit_Framework_TestCase
{

    /**
     * Data for test_clean()
     */
    function data_clean()
    {
        return array(
            array('', '', 'Empty string'),
        );
    }

    /**
     * @dataProvider data_clean
     */
    function test_clean($input, $output, $title)
    {
        $this->assertEquals(rcube_charset::clean($input), $output, $title);
    }
}