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-02-27 13:08:45 +0300
committerGitHub <noreply@github.com>2020-02-27 13:08:45 +0300
commit93aef4865cfdee9fcfa5acc9ff1950459a0af42e (patch)
treeaa8ad643d8ad233ffb2b033a437bcd2b71274877 /plugins/Live/tests/System
parentf28c7fa6cb6c63c8f459206448c7dcb93568099e (diff)
Update to PHPUnit 8.5 (#15581)
* use latest phpunit/phpunit ~8.5 * submodule updates * fixes
Diffstat (limited to 'plugins/Live/tests/System')
-rw-r--r--plugins/Live/tests/System/ApiCounterTest.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/Live/tests/System/ApiCounterTest.php b/plugins/Live/tests/System/ApiCounterTest.php
index c71a62a850..58cf83fbb1 100644
--- a/plugins/Live/tests/System/ApiCounterTest.php
+++ b/plugins/Live/tests/System/ApiCounterTest.php
@@ -35,14 +35,14 @@ class ApiCounterTest extends SystemTestCase
private $api;
private $idSite = 1;
- public static function setUpBeforeClass()
+ public static function setUpBeforeClass(): void
{
self::$testNow = strtotime('2018-02-03 04:45:40');
parent::setUpBeforeClass();
}
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
@@ -51,12 +51,11 @@ class ApiCounterTest extends SystemTestCase
$this->createSite();
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage checkUserHasViewAccess Fake exception
- */
public function test_GetCounters_ShouldFail_IfUserHasNoPermission()
{
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('checkUserHasViewAccess Fake exception');
+
$this->setAnonymous();
$this->api->getCounters($this->idSite, 5);
}