Passed
Push — master ( 81d3f9...4ab6f6 )
by Gabriel
11:06
created

HasNameTest::test_getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
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\Custom\Tournament;
7
8
/**
9
 * Class HasNameTest
10
 * @package ByTIC\Models\SmartProperties\Tests\Properties\AbstractProperty\Traits
11
 */
12
class HasNameTest extends AbstractTest
13
{
14
    public function test_getName()
15
    {
16
        $property = new Tournament();
17
        $property->setNamespace('ByTIC\Models\SmartProperties\Tests\Fixtures\RecordsTraits\HasTypes\Types\\');
18
19
        self::assertSame('custom-tournament', $property->getName());
20
    }
21
}
22