Passed
Push — master ( 416dc9...0e85a7 )
by Gabriel
03:04
created

GenericTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_toString() 0 6 1
1
<?php
2
3
namespace ByTIC\Models\SmartProperties\Tests\Properties\AbstractProperty;
4
5
use ByTIC\Models\SmartProperties\Tests\AbstractTest;
6
use ByTIC\Models\SmartProperties\Tests\Fixtures\RecordsTraits\HasTypes\Types\Relay;
7
8
/**
9
 * Class GenericTest
10
 * @package ByTIC\Models\SmartProperties\Tests\Properties\AbstractProperty
11
 */
12
class GenericTest extends AbstractTest
13
{
14
    public function test_toString()
15
    {
16
        $type = new Relay();
17
18
        self::assertSame('relay', (string)$type);
19
        self::assertSame('N: relay', 'N: ' . $type);
20
    }
21
}