for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\GBProd\DomainEventBundle\Dispatcher;
use GBProd\DomainEventBundle\Event\Event;
use GBProd\DomainEvent\DomainEvent;
/**
* Tests for Dispatcher
*
* @author gbprod <[email protected]>
*/
class EventTest extends \PHPUnit_Framework_TestCase
{
public function testConstruct()
$domainEvent = $this->getMock(DomainEvent::class);
$event = new Event($domainEvent);
$this->assertEquals(
$domainEvent,
$event->getDomainEvent()
);
}