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:
authorStefan Giehl <stefan@matomo.org>2020-04-19 16:52:29 +0300
committerGitHub <noreply@github.com>2020-04-19 16:52:29 +0300
commit7e6b13cfd9207adfd2ab0e3d39d0d3b8b17bb3ea (patch)
treec939395ab75eb1d2df66c352186f291f0f870d3f /tests/PHPUnit/Framework/TestCase/SystemTestCase.php
parent36a3729bbe0c70175eeee61dbf23f3395800dfe9 (diff)
Run tests on bionic distribution & run AllTests with PHP 7.4 (#15720)
* run tests on php 7.4 / xenial * composer update * fix lfs check * adjust travis.yml * adds distribution param * update submodule * update travis.yml * fix icon tests * Fix array access error on PHP 7.4 * fix test * avoid usage of deprecated assertArraySubset * convert expectedException annotations * avoid error on php 7.4 * Use assertion instead of conditional expection * add separat expected test result asserialize output changed for PHP7.4 * updates expected ui files * fix ui test * run UI tests on xenial dist * updates expected ui files * Update core/DataTable/Renderer.php * updates expected UI files * submodule update
Diffstat (limited to 'tests/PHPUnit/Framework/TestCase/SystemTestCase.php')
-rw-r--r--tests/PHPUnit/Framework/TestCase/SystemTestCase.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
index 1cc27afef4..a067283be7 100644
--- a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
+++ b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
@@ -461,9 +461,7 @@ abstract class SystemTestCase extends TestCase
ProcessedMetric::class,
], true);
- if ($unserialized === false) {
- throw new \Exception("Unknown serialization error.");
- }
+ self::assertTrue($unserialized !== false, "Unknown serialization error.");
} catch (\Exception $ex) {
$this->comparisonFailures[] = new \Exception("Processed response in '$processedFilePath' could not be unserialized: " . $ex->getMessage());
}