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

GenericTest::test_toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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