Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
italolelis committed Jun 23, 2016
1 parent a94294f commit 36cf73b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/CommandBus/EventDispatchingCommandBusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use HelloFresh\Engine\CommandBus\Exception\MissingHandlerException;
use HelloFresh\Engine\CommandBus\Handler\InMemoryLocator;
use HelloFresh\Engine\CommandBus\SimpleCommandBus;
use HelloFresh\Engine\EventDispatcher\EventDispatcher;
use HelloFresh\Engine\EventDispatcher\InMemoryDispatcher;
use HelloFresh\Tests\Engine\Mock\InvalidHandler;
use HelloFresh\Tests\Engine\Mock\TestCommand;
use HelloFresh\Tests\Engine\Mock\TestHandler;
Expand All @@ -28,7 +28,7 @@ protected function setUp()
{
$this->locator = new InMemoryLocator();
$simpleCommandBus = new SimpleCommandBus($this->locator);
$eventDispatcher = new EventDispatcher();
$eventDispatcher = new InMemoryDispatcher();
$this->commandBus = new EventDispatchingCommandBus($simpleCommandBus, $eventDispatcher);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/EventDispatcher/EventDispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace HelloFresh\Tests\Engine\EventBus;

use HelloFresh\Engine\EventDispatcher\EventDispatcher;
use HelloFresh\Engine\EventDispatcher\InMemoryDispatcher;
use HelloFresh\Engine\EventDispatcher\EventDispatcherInterface;
use HelloFresh\Tests\Engine\Mock\TracableEventListener;

Expand All @@ -17,7 +17,7 @@ class EventDispatcherTest extends \PHPUnit_Framework_TestCase

public function setUp()
{
$this->dispatcher = new EventDispatcher();
$this->dispatcher = new InMemoryDispatcher();
$this->listener1 = new TracableEventListener();
$this->listener2 = new TracableEventListener();
$this->assertFalse($this->listener1->isCalled());
Expand Down

0 comments on commit 36cf73b

Please sign in to comment.