diff options
author | Stefan Giehl <stefan@matomo.org> | 2019-03-11 07:47:27 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-03-11 07:47:27 +0300 |
commit | a345c2f22b8356dd3300d66f5ade3df24f69d900 (patch) | |
tree | 436cc2e01ae503fd5fa8be6720f73f8260d09a83 /tests | |
parent | f7b442a9ca40466fe43e0312e013f51f2e5e5abd (diff) |
Run AllTests against PHP 7.3 on travis (#14148)
* Run AllTests against PHP 7.3 on travis
* use INTL_IDNA_VARIANT_UTS46 for idn_to_utf8
PHP 7.2 deprecated INTL_IDNA_VARIANT_2003 but still uses it as default until 7.4
* Fix test as var_export signature for stdClasses changed in PHP 7.3
see https://github.com/php/php-src/commit/e4e9cd835550990a6b8df7c61d59b6cc0da9b5b2
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Integration/EmailValidatorTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PHPUnit/Integration/EmailValidatorTest.php b/tests/PHPUnit/Integration/EmailValidatorTest.php index 8cb0c198c0..4a4665f2d6 100644 --- a/tests/PHPUnit/Integration/EmailValidatorTest.php +++ b/tests/PHPUnit/Integration/EmailValidatorTest.php @@ -60,7 +60,7 @@ class EmailValidatorTest extends \PHPUnit_Framework_TestCase if (strpos(mb_strtolower($tld), 'xn--') !== 0) { $tld = mb_strtolower($tld); } - $domainNameExtension = idn_to_utf8($tld); + $domainNameExtension = idn_to_utf8($tld, 0, INTL_IDNA_VARIANT_UTS46); $email = 'test@example.' . $domainNameExtension; if(!$this->isValid($email)) { @@ -101,7 +101,7 @@ class EmailValidatorTest extends \PHPUnit_Framework_TestCase $tld = mb_strtolower($tld); } $this->assertFalse( - $this->isValid('test@example.' . idn_to_utf8($tld)) + $this->isValid('test@example.' . idn_to_utf8($tld, 0, INTL_IDNA_VARIANT_UTS46)) ); } } |