Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml4
-rw-r--r--plugins/API/tests/Unit/HtmlRendererTest.php7
-rw-r--r--tests/PHPUnit/Integration/EmailValidatorTest.php4
3 files changed, 9 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index d78e98f8b4..adccfa91c9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -63,10 +63,10 @@ matrix:
sudo: false
addons: false
# All tests after another
- - php: 7
+ - php: 7.3
env: TEST_SUITE=AllTests MYSQL_ADAPTER=MYSQLI ALLTEST_EXTRA_OPTIONS="--run-first-half-only"
sudo: required
- - php: 7
+ - php: 7.3
env: TEST_SUITE=AllTests MYSQL_ADAPTER=MYSQLI ALLTEST_EXTRA_OPTIONS="--run-second-half-only"
sudo: required
# UITests use a specific version because the default 5.5 (== 5.5.38) is missing FreeType support
diff --git a/plugins/API/tests/Unit/HtmlRendererTest.php b/plugins/API/tests/Unit/HtmlRendererTest.php
index d1370432ff..098f9395cc 100644
--- a/plugins/API/tests/Unit/HtmlRendererTest.php
+++ b/plugins/API/tests/Unit/HtmlRendererTest.php
@@ -275,6 +275,10 @@ message', $response);
$response = $this->builder->renderDataTable($dataTable);
+ $stdClass = version_compare(PHP_VERSION, 7.3, '>=') ?
+ "(object) array(\n )," :
+ "stdClass::__set_state(array(\n )),";
+
$this->assertEquals('<table id="MultiSites_getAll" border="1">
<thead>
<tr>
@@ -292,8 +296,7 @@ message', $response);
Piwik\Plugins\CoreHome\Columns\Metrics\AverageTimeOnSite::__set_state(array(
)),
1 =&gt;
- stdClass::__set_state(array(
- )),
+ ' . $stdClass . '
2 =&gt;
Piwik\Date::__set_state(array(
\'timestamp\' =&gt; 1451606400,
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))
);
}
}