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

ModelTest::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\Model\Entity;
6
7
8
use Hexarchium\CoreDomain\Model\Domain\DomainId;
9
use Hexarchium\CoreDomain\Model\Model\Entity\Model;
10
use Hexarchium\CoreDomain\Model\Model\ModelId;
11
12
class ModelTest extends \PHPUnit_Framework_TestCase
13
{
14
    public function testInitialize()
15
    {
16
        $this->assertInstanceOf(
17
            Model::class,
18
            new Model(
19
                new ModelId(
20
                    new DomainId('1'),
21
                    '1'
22
                )
23
            )
24
        );
25
    }
26
}
27