diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-10-16 11:02:10 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-10-16 11:02:10 +0200 |
commit | e0d6bd5b6dc2bc30a5d2c688eebc80367fcd3ae5 (patch) | |
tree | c7ba7a4705cd5e4c214271f75c23123284813a28 | |
parent | 7224e99ccd47a0c9320ef9fd7a297b67cbbfd67c (diff) | |
download | nextcloud-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.
-rw-r--r-- | tests/lib/mail/message.php | 4 |
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))); |