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.
This commit is contained in:
Lukas Reschke 2015-10-16 11:02:10 +02:00
parent 7224e99ccd
commit e0d6bd5b6d
1 changed files with 4 additions and 0 deletions

View File

@ -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)));