Passed
Push — master ( 90a55c...bcadde )
by Gabriel
03:02
created

DefinitionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_getItemsNames_from_files() 0 8 1
1
<?php
2
3
namespace ByTIC\Models\SmartProperties\Tests\Properties\Definitions;
4
5
use ByTIC\Models\SmartProperties\Properties\Definitions\Definition;
6
use ByTIC\Models\SmartProperties\Tests\AbstractTest;
7
8
/**
9
 * Class DefinitionTest
10
 * @package ByTIC\Models\SmartProperties\Tests\Properties\Definitions
11
 */
12
class DefinitionTest extends AbstractTest
13
{
14
    public function test_getItemsNames_from_files()
15
    {
16
        $definition = new Definition();
17
        $definition->setItemsDirectory(TEST_FIXTURE_PATH . '/RecordsTraits/HasTypes/Types');
18
19
        $names = $definition->getItemsNames();
20
        self::assertIsArray( $names);
21
        self::assertCount(5, $names);
22
    }
23
}
24