EventTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstruct() 0 11 1
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
}