diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-04-22 02:42:38 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-04-22 02:50:54 +0300 |
commit | 87d826e30b0b4f32b6a1b9c07c4d1bea38893604 (patch) | |
tree | a7f5b1215608b7eb21192e55b9ec4de7d51baf26 /tests/PHPUnit/Framework/Mock | |
parent | c38cb2fe666b085d356451f8f71405fca0322615 (diff) |
Test for the archiver log output
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; + } +} |