Completed
Branch master (6515e3)
by Tomasz
03:10 queued 01:11
created

DomainCreatedTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 16
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testInitialize() 0 12 1
1
<?php
2
/**
3
 * Copyright
4
 */
5
namespace Hexarchium\CoreDomain\Tests\Model\Domain\Events;
6
7
8
use Hexarchium\CoreDomain\Model\Domain\DomainId;
9
use Hexarchium\CoreDomain\Model\Domain\Entity\Domain;
10
use Hexarchium\CoreDomain\Model\Domain\Events\DomainCreated;
11
12
class DomainCreatedTest extends \PHPUnit_Framework_TestCase
13
{
14
15
    public function testInitialize()
16
    {
17
        $this->assertInstanceOf(
18
            DomainCreated::class,
19
            new DomainCreated(
20
                new \DateTime(),
21
                new Domain(
22
                    new DomainId('test')
23
                )
24
            )
25
        );
26
    }
27
}
28