diff options
author | diosmosis <benaka@piwik.pro> | 2015-04-27 00:59:50 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-04-27 00:59:50 +0300 |
commit | db4874776aa839bc8ed1f70bcbd7712acc741746 (patch) | |
tree | 1b374298563c2f2a31228f4ffc5d35b23eb29fad /tests/PHPUnit/Framework/Mock | |
parent | 1760412a370823f96eeed21d730acf8f4038c843 (diff) | |
parent | ad93a77498cb03ae8f4c52c292d3b584f67c458e (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.php | 19 |
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; + } +} |