EntityTests   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testId() 0 9 1
1
<?php
2
3
/**
4
 * This file is part of the Cubiche/Model component.
5
 *
6
 * Copyright (c) Cubiche
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Cubiche\Domain\Model\Tests\Units\Selector;
13
14
use Cubiche\Domain\Model\Selector\Entity;
15
use Cubiche\Domain\Model\Selector\Id;
16
use Cubiche\Domain\Model\Tests\Units\TestCase;
17
18
/**
19
 * EntityTests class.
20
 *
21
 * Generated by TestGenerator on 2016-05-03 at 16:01:26.
22
 */
23
class EntityTests extends TestCase
24
{
25
    /**
26
     * Test Id method.
27
     */
28
    public function testId()
29
    {
30
        $this
31
            ->given($selector = new Entity())
32
            ->then()
33
                ->object($selector->id())
34
                    ->isInstanceOf(Id::class)
35
        ;
36
    }
37
}
38