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

HasPlacesTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_getPlaces() 0 7 1
1
<?php
2
3
namespace ByTIC\Models\SmartProperties\Tests\Definitions\Traits;
4
5
use ByTIC\Models\SmartProperties\Definitions\Definition;
6
use ByTIC\Models\SmartProperties\Tests\AbstractTest;
7
8
/**
9
 * Class HasPlacesTest
10
 * @package ByTIC\Models\SmartProperties\Tests\Definitions\Traits
11
 */
12
class HasPlacesTest extends AbstractTest
13
{
14
    public function test_getPlaces()
15
    {
16
        $definition = new Definition();
17
18
        $places = ['pending', 'active'];
19
        $definition->setPlaces($places);
20
        self::assertSame($places, $definition->getPlaces());
21
    }
22
}