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.
remotes/origin/dropbox-use-clientmtime
Lukas Reschke 10 years ago
parent 7224e99ccd
commit e0d6bd5b6d
  1. 4
      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)));

Loading…
Cancel
Save