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

ModelIdTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 13
rs 10
c 1
b 0
f 0

2 Methods

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