Skip to content

Commit

Permalink
And this kids is why programming at 1am is bad.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glenn Eggeton committed Jan 29, 2017
1 parent aeba92a commit d9ca684
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/EventDipsatcher.php → src/EventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

use Interop\Container\ContainerInterface;

class EventDipsatcher implements EventDipsatcherInterface
class EventDispatcher implements EventDispatcherInterface
{
/** @var array */
protected $listeners;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Infra;

interface EventDipsatcherInterface
interface EventDispatcherInterface
{

/**
Expand Down
6 changes: 3 additions & 3 deletions tests/EventDispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
namespace Tests\Infra;


use Infra\EventDipsatcher;
use Infra\EventDispatcher;
use PHPUnit\Framework\TestCase;
use Tests\Infra\Implementation\TestContainer;
use Tests\Infra\Implementation\TestEvent;
use Tests\Infra\Implementation\TestEventHandler;

class EventDispatcherTest extends TestCase
{
/** @var EventDipsatcher */
/** @var EventDispatcher */
protected $dispatcher;

/** @var TestEventHandler */
Expand All @@ -29,7 +29,7 @@ public function setUp()
$container = new TestContainer();
$container->add(TestEventHandler::class, $this->handler);

$this->dispatcher = new EventDipsatcher($container);
$this->dispatcher = new EventDispatcher($container);
$this->dispatcher->addListener(TestEvent::class, [TestEventHandler::class, 'receiveEvent']);
}

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


use Infra\CommandBus;
use Infra\EventDipsatcher;
use Infra\EventDispatcher;
use PHPUnit\Framework\TestCase;
use Tests\Infra\Implementation\FunctionalTestCommandHandler;
use Tests\Infra\Implementation\FunctionalTestEventListener;
Expand Down Expand Up @@ -51,7 +51,7 @@ public function setUp()
$this->commandBus = new CommandBus($this->container);


$this->eventDispatcher = new EventDipsatcher($this->container);
$this->eventDispatcher = new EventDispatcher($this->container);

$this->handler = new FunctionalTestCommandHandler($this->eventDispatcher);

Expand Down
4 changes: 2 additions & 2 deletions tests/Implementation/FunctionalTestCommandHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

use Infra\AbstractCommand;
use Infra\AbstractCommandHandler;
use Infra\EventDipsatcher;
use Infra\EventDispatcher;

class FunctionalTestCommandHandler extends AbstractCommandHandler
{
protected $count;

protected $dispatcher;

public function __construct(EventDipsatcher $dispatcher)
public function __construct(EventDispatcher $dispatcher)
{
$this->dispatcher = $dispatcher;
$this->count = 0;
Expand Down

0 comments on commit d9ca684

Please sign in to comment.