Passed
Push — master ( 09a839...6515e3 )
by Tomasz
02:07
created

DomainCreatedTest::testInitialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 12
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
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