summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-03-26 11:17:23 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-03-26 11:17:23 +0100
commit83b4bcfdbf832f1ebc78c9cf6f6aba5490b65cb3 (patch)
treecefecc39530ffb374a725e95bb156b4da44ac85e /tests
parent75d8de378cd355671c310bcb62c35504a5c03f0a (diff)
downloadnextcloud-server-83b4bcfdbf832f1ebc78c9cf6f6aba5490b65cb3.tar.gz
nextcloud-server-83b4bcfdbf832f1ebc78c9cf6f6aba5490b65cb3.zip
idn_to_ascii is only used if available
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/mail.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/mail.php b/tests/lib/mail.php
index a88a9d797ae..3cc9868e25e 100644
--- a/tests/lib/mail.php
+++ b/tests/lib/mail.php
@@ -8,6 +8,15 @@
class Test_Mail extends PHPUnit_Framework_TestCase {
+ protected function setUp()
+ {
+ if (!function_exists('idn_to_ascii')) {
+ $this->markTestSkipped(
+ 'The intl extension is not available.'
+ );
+ }
+ }
+
/**
* @dataProvider buildAsciiEmailProvider
* @param $expected