Completed
Push — master ( 6e0bb5...dae7dc )
by GBProd
04:09
created

EventTest::testConstruct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
3
namespace Tests\GBProd\DomainEventBundle\Dispatcher;
4
5
use GBProd\DomainEventBundle\Event\Event;
6
use GBProd\DomainEvent\DomainEvent;
7
8
/**
9
 * Tests for Dispatcher
10
 * 
11
 * @author gbprod <[email protected]>
12
 */
13
class EventTest extends \PHPUnit_Framework_TestCase
14
{
15
    public function testConstruct()
16
    {
17
        $domainEvent = $this->getMock(DomainEvent::class);
18
        
19
        $event = new Event($domainEvent);
20
        
21
        $this->assertEquals(
22
            $domainEvent,
23
            $event->getDomainEvent()
24
        );
25
    }
26
}