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

HasItemTraitTest::test_compare_different_objects()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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