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:
authordiosmosis <benaka@piwik.pro>2015-04-27 00:59:50 +0300
committerdiosmosis <benaka@piwik.pro>2015-04-27 00:59:50 +0300
commitdb4874776aa839bc8ed1f70bcbd7712acc741746 (patch)
tree1b374298563c2f2a31228f4ffc5d35b23eb29fad /tests/PHPUnit/Framework/Mock
parent1760412a370823f96eeed21d730acf8f4038c843 (diff)
parentad93a77498cb03ae8f4c52c292d3b584f67c458e (diff)
Merge branch 'master' into config_step_2
Conflicts: core/Console.php piwik.php
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;
+ }
+}