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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-04-22 02:42:38 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-04-22 02:50:54 +0300
commit87d826e30b0b4f32b6a1b9c07c4d1bea38893604 (patch)
treea7f5b1215608b7eb21192e55b9ec4de7d51baf26 /tests/PHPUnit/Framework/Mock
parentc38cb2fe666b085d356451f8f71405fca0322615 (diff)
Test for the archiver log output
Diffstat (limited to 'tests/PHPUnit/Framework/Mock')
-rw-r--r--tests/PHPUnit/Framework/Mock/FakeLogger.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/Mock/FakeLogger.php b/tests/PHPUnit/Framework/Mock/FakeLogger.php
new file mode 100644
index 0000000000..8bdd66388c
--- /dev/null
+++ b/tests/PHPUnit/Framework/Mock/FakeLogger.php
@@ -0,0 +1,19 @@
+<?php
+
+namespace Piwik\Tests\Framework\Mock;
+
+use Psr\Log\AbstractLogger;
+use Psr\Log\LoggerInterface;
+
+class FakeLogger extends AbstractLogger implements LoggerInterface
+{
+ /**
+ * @var string
+ */
+ public $output = '';
+
+ public function log($level, $message, array $context = array())
+ {
+ $this->output .= $message . PHP_EOL;
+ }
+}