diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-09-09 20:23:56 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-09-09 20:23:56 +0200 |
commit | 99d9f50a0000447d0a752e6c43716237dc0da176 (patch) | |
tree | 0b958b9711d09c4da74f076e1b902ffa32a4a0a1 /tests/Framework/Charset.php | |
parent | a1303514933afe2d867067e4b95412c79652c89b (diff) | |
parent | 4e383e2ec8b4184c0fe74d02cf30fd3a4078128e (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'tests/Framework/Charset.php')
-rw-r--r-- | tests/Framework/Charset.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/Framework/Charset.php b/tests/Framework/Charset.php new file mode 100644 index 000000000..9e3fad4d3 --- /dev/null +++ b/tests/Framework/Charset.php @@ -0,0 +1,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); + } +} |