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

DefinitionTest::test_getItemsNames_from_files()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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