From e0d6bd5b6dc2bc30a5d2c688eebc80367fcd3ae5 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 16 Oct 2015 11:02:10 +0200 Subject: [PATCH] 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. --- tests/lib/mail/message.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/lib/mail/message.php b/tests/lib/mail/message.php index 8ee3c33627..339677c0a7 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)));