summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-10-16 11:02:10 +0200
committerLukas Reschke <lukas@owncloud.com>2015-10-16 11:02:10 +0200
commite0d6bd5b6dc2bc30a5d2c688eebc80367fcd3ae5 (patch)
treec7ba7a4705cd5e4c214271f75c23123284813a28 /tests
parent7224e99ccd47a0c9320ef9fd7a297b67cbbfd67c (diff)
downloadnextcloud-server-e0d6bd5b6dc2bc30a5d2c688eebc80367fcd3ae5.tar.gz
nextcloud-server-e0d6bd5b6dc2bc30a5d2c688eebc80367fcd3ae5.zip
Run test only when idn is available
IDN is not installed on all machines making the unit test execution fail on those without. Let's make IDN thus a pre-requirement for the text execution.
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/mail/message.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/mail/message.php b/tests/lib/mail/message.php
index 8ee3c33627c..339677c0a7c 100644
--- a/tests/lib/mail/message.php
+++ b/tests/lib/mail/message.php
@@ -39,7 +39,11 @@ class MessageTest extends TestCase {
}
/**
+ * @requires function idn_to_ascii
* @dataProvider mailAddressProvider
+ *
+ * @param string $unconverted
+ * @param string $expected
*/
public function testConvertAddresses($unconverted, $expected) {
$this->assertSame($expected, self::invokePrivate($this->message, 'convertAddresses', array($unconverted)));