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

ModelIdTest::testConstructorValues()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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