Cleanup events and stuff before processing job in worker
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user