summaryrefslogtreecommitdiff
path: root/tests/Framework/Charset.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-27 09:28:16 +0200
committerAleksander Machniak <alec@alec.pl>2012-08-27 09:28:16 +0200
commit5f8adabb6286fdcb0ff8a0ea5d1d58f40eef51f4 (patch)
tree8e6997e584950115850bf698943f1828fb9b9811 /tests/Framework/Charset.php
parent9b05f19338e209f05386e5b13fe0a704c94062bb (diff)
Add simple (constructor) tests for Framework classes
Diffstat (limited to 'tests/Framework/Charset.php')
-rw-r--r--tests/Framework/Charset.php28
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);
+ }
+}