Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-10-16 12:02:10 +0300
committerLukas Reschke <lukas@owncloud.com>2015-10-16 12:02:10 +0300
commite0d6bd5b6dc2bc30a5d2c688eebc80367fcd3ae5 (patch)
treec7ba7a4705cd5e4c214271f75c23123284813a28 /tests
parent7224e99ccd47a0c9320ef9fd7a297b67cbbfd67c (diff)
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)));