summaryrefslogtreecommitdiff
path: root/tests/units/Base.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/Base.php')
-rw-r--r--tests/units/Base.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/units/Base.php b/tests/units/Base.php
index bce65f2d..b6302942 100644
--- a/tests/units/Base.php
+++ b/tests/units/Base.php
@@ -6,6 +6,8 @@ require __DIR__.'/../../app/constants.php';
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher;
use Symfony\Component\Stopwatch\Stopwatch;
+use SimpleLogger\Logger;
+use SimpleLogger\File;
date_default_timezone_set('UTC');
@@ -38,6 +40,9 @@ abstract class Base extends PHPUnit_Framework_TestCase
);
$this->container['db']->log_queries = true;
+
+ $this->container['logger'] = new Logger;
+ $this->container['logger']->setLogger(new File('/dev/null'));
}
public function tearDown()