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>2022-03-10 23:08:31 +0300
committerGitHub <noreply@github.com>2022-03-10 23:08:31 +0300
commitc11469e4199405628e97650914f0cdbdea94dac7 (patch)
treeaf07edd44b6ac95fa3cd6e439d435cf6c55e9ad5 /plugins/Monolog
parent05082abdca8909cf27137773f129cf66f495922b (diff)
[Codingstyle] Disallow unused use statements (#18520)
* Forbid unused use statements * Fix some incorrect classnames * fix tests * remove unused use statements
Diffstat (limited to 'plugins/Monolog')
-rw-r--r--plugins/Monolog/tests/Integration/LogTest.php3
-rw-r--r--plugins/Monolog/tests/Unit/Processor/ExceptionToTextProcessorTest.php4
2 files changed, 2 insertions, 5 deletions
diff --git a/plugins/Monolog/tests/Integration/LogTest.php b/plugins/Monolog/tests/Integration/LogTest.php
index 6353a0ed06..4bc2e72f75 100644
--- a/plugins/Monolog/tests/Integration/LogTest.php
+++ b/plugins/Monolog/tests/Integration/LogTest.php
@@ -11,7 +11,6 @@ namespace Piwik\Plugins\Monolog\tests\Integration;
use Exception;
use Piwik\Application\Environment;
use Piwik\Common;
-use Piwik\Config;
use Piwik\Container\StaticContainer;
use Piwik\Db;
use Piwik\Log;
@@ -28,7 +27,7 @@ class LogTest extends IntegrationTestCase
const STRING_MESSAGE_FORMAT = '[%tag%] %message%';
const STRING_MESSAGE_FORMAT_SPRINTF = "[%s] [%s] %s";
- public static $expectedExceptionOutput = '[Monolog] [%s] LogTest.php(130): dummy error message
+ public static $expectedExceptionOutput = '[Monolog] [%s] LogTest.php(129): dummy error message
dummy backtrace [Query: , CLI mode: 1]';
public static $expectedErrorOutput = '[Monolog] [%s] dummyerrorfile.php(145): dummy error message
diff --git a/plugins/Monolog/tests/Unit/Processor/ExceptionToTextProcessorTest.php b/plugins/Monolog/tests/Unit/Processor/ExceptionToTextProcessorTest.php
index eb427bf01c..b5efb73d7d 100644
--- a/plugins/Monolog/tests/Unit/Processor/ExceptionToTextProcessorTest.php
+++ b/plugins/Monolog/tests/Unit/Processor/ExceptionToTextProcessorTest.php
@@ -11,9 +11,7 @@ namespace Piwik\Plugins\Monolog\tests\Unit\Processor;
use PHPUnit\Runner\Version;
use Piwik\Access;
use Piwik\Common;
-use Piwik\Db;
use Piwik\Log;
-use Piwik\Piwik;
use Piwik\Plugins\Monolog\Processor\ExceptionToTextProcessor;
/**
@@ -72,7 +70,7 @@ class ExceptionToTextProcessorTest extends \PHPUnit\Framework\TestCase
$result = $processor($record);
$expected = array(
- 'message' => __FILE__ . "(65): [message and stack trace] [Query: , CLI mode: 1]",
+ 'message' => __FILE__ . "(63): [message and stack trace] [Query: , CLI mode: 1]",
'context' => array(
'exception' => $exception,
),