Passed
Push — master ( c4a808...c45372 )
by Gabriel
15:08
created

HasItemTraitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 6
c 1
b 0
f 1
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_compare_different_objects() 0 8 1
1
<?php
2
3
namespace ByTIC\Models\SmartProperties\Tests\Properties\AbstractProperty\Traits;
4
5
use ByTIC\Models\SmartProperties\Tests\AbstractTest;
6
use ByTIC\Models\SmartProperties\Tests\Fixtures\RecordsTraits\HasTypes\Types\Relay;
7
8
/**
9
 * Class HasItemTraitTest
10
 * @package ByTIC\Models\SmartProperties\Tests\Properties\AbstractProperty\Traits
11
 */
12
class HasItemTraitTest extends AbstractTest
13
{
14
15
    public function test_compare_different_objects()
16
    {
17
        $object = new \stdClass();
18
        $object->id = 1;
19
        $type = new Relay();
20
        $type->setItem($object);
21
22
        self::assertSame($object, $type->getItem());
23
    }
24
}
25