Cleanup events and stuff before processing job in worker

This commit is contained in:
Frederic Guillot
2016-07-31 11:28:33 -04:00
parent 92ac133d23
commit 92a5a0f860
5 changed files with 71 additions and 7 deletions

View File

@@ -16,6 +16,11 @@ abstract class Base extends PHPUnit_Framework_TestCase
{
protected $container;
/**
* @var EventDispatcher
*/
protected $dispatcher;
public function setUp()
{
date_default_timezone_set('UTC');
@@ -49,6 +54,8 @@ abstract class Base extends PHPUnit_Framework_TestCase
new Stopwatch
);
$this->dispatcher = $this->container['dispatcher'];
$this->container['db']->getStatementHandler()->withLogging();
$this->container['logger'] = new Logger();