summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-31 15:06:33 +0200
committerAleksander Machniak <alec@alec.pl>2012-08-31 15:06:33 +0200
commit4bb0bffefe3d0772f10bfd4acc3e8ccb1193211d (patch)
treef679baf49aaefbf21fd097b85329758762a76af7 /tests
parentafa0b1df58d93059686f00017a111185e5ee2674 (diff)
Convert managesieve test scripts to PHPUnit, add them to the suite
Diffstat (limited to 'tests')
-rw-r--r--tests/HtmlToText.php4
-rw-r--r--tests/phpunit.xml4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/HtmlToText.php b/tests/HtmlToText.php
index 34e2d1a63..b90c61adf 100644
--- a/tests/HtmlToText.php
+++ b/tests/HtmlToText.php
@@ -8,7 +8,7 @@
class HtmlToText extends PHPUnit_Framework_TestCase
{
- function data()
+ function data_html2text()
{
return array(
0 => array(
@@ -45,7 +45,7 @@ class HtmlToText extends PHPUnit_Framework_TestCase
}
/**
- * @dataProvider data
+ * @dataProvider data_html2text
*/
function test_html2text($title, $in, $out)
{
diff --git a/tests/phpunit.xml b/tests/phpunit.xml
index 28f7e7420..8b3883223 100644
--- a/tests/phpunit.xml
+++ b/tests/phpunit.xml
@@ -29,5 +29,9 @@
<file>HtmlToText.php</file>
<file>MailFunc.php</file>
</testsuite>
+ <testsuite name="managesieve">
+ <file>./../plugins/managesieve/tests/Parser.php</file>
+ <file>./../plugins/managesieve/tests/Tokenizer.php</file>
+ </testsuite>
</testsuites>
</phpunit>