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/Monolog
parentf28c7fa6cb6c63c8f459206448c7dcb93568099e (diff)
Update to PHPUnit 8.5 (#15581)
* use latest phpunit/phpunit ~8.5 * submodule updates * fixes
Diffstat (limited to 'plugins/Monolog')
-rw-r--r--plugins/Monolog/tests/Integration/LogTest.php4
-rw-r--r--plugins/Monolog/tests/System/TrackerLoggingTest.php2
-rw-r--r--plugins/Monolog/tests/Unit/Processor/RequestIdProcessorTest.php8
3 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Monolog/tests/Integration/LogTest.php b/plugins/Monolog/tests/Integration/LogTest.php
index 0f2c32ec84..b528fff1c9 100644
--- a/plugins/Monolog/tests/Integration/LogTest.php
+++ b/plugins/Monolog/tests/Integration/LogTest.php
@@ -34,7 +34,7 @@ class LogTest extends IntegrationTestCase
public static $expectedErrorOutput = '[Monolog] [%s] dummyerrorfile.php(145): Unknown error (102) - dummy error string
dummy backtrace';
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
@@ -44,7 +44,7 @@ class LogTest extends IntegrationTestCase
Log::$debugBacktraceForTests = "dummy backtrace";
}
- public function tearDown()
+ public function tearDown(): void
{
Log::unsetInstance();
diff --git a/plugins/Monolog/tests/System/TrackerLoggingTest.php b/plugins/Monolog/tests/System/TrackerLoggingTest.php
index f0281e47eb..f4ff5598db 100644
--- a/plugins/Monolog/tests/System/TrackerLoggingTest.php
+++ b/plugins/Monolog/tests/System/TrackerLoggingTest.php
@@ -24,7 +24,7 @@ class TrackerLoggingTest extends SystemTestCase
{
private $idSite = 1;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/plugins/Monolog/tests/Unit/Processor/RequestIdProcessorTest.php b/plugins/Monolog/tests/Unit/Processor/RequestIdProcessorTest.php
index 02246001c6..8dab6f9701 100644
--- a/plugins/Monolog/tests/Unit/Processor/RequestIdProcessorTest.php
+++ b/plugins/Monolog/tests/Unit/Processor/RequestIdProcessorTest.php
@@ -16,15 +16,15 @@ use Piwik\Plugins\Monolog\Processor\RequestIdProcessor;
* @group Log
* @covers \Piwik\Plugins\Monolog\Processor\RequestIdProcessor
*/
-class RequestIdProcessorTest extends \PHPUnit\Framework\TestCase
+class RequestIdProcessorTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
Common::$isCliMode = false;
}
- public function tearDown()
+ public function tearDown(): void
{
parent::tearDown();
Common::$isCliMode = true;
@@ -40,7 +40,7 @@ class RequestIdProcessorTest extends \PHPUnit\Framework\TestCase
$result = $processor(array());
$this->assertArrayHasKey('request_id', $result['extra']);
- $this->assertInternalType('string', $result['extra']['request_id']);
+ self::assertIsString($result['extra']['request_id']);
$this->assertNotEmpty($result['extra']['request_id']);
}