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

UseCaseTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

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

1 Method

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