Completed
Push — master ( 86b8da...2af8a4 )
by Tomáš
02:58
created

MultiCsFileLoaderTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 1
cbo 3
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testLoad() 0 7 1
1
<?php
2
3
namespace Symplify\MultiCodingStandard\Tests\Configuration;
4
5
use phpunit\framework\TestCase;
6
use Symplify\MultiCodingStandard\Configuration\MultiCsFileLoader;
7
use Symplify\MultiCodingStandard\Contract\Configuration\MultiCsFileLoaderInterface;
8
9
final class MultiCsFileLoaderTest extends TestCase
10
{
11
    /**
12
     * @var MultiCsFileLoaderInterface
13
     */
14
    private $multiCsFileLoader;
15
16
    protected function setUp()
17
    {
18
        $this->multiCsFileLoader = new MultiCsFileLoader(__DIR__.'/multi-cs.json');
19
    }
20
21
    public function testLoad()
22
    {
23
        $loadedFile = $this->multiCsFileLoader->load();
24
        $this->assertSame([
25
           'key' => 'value'
26
        ], $loadedFile);
27
    }
28
}