testGetAvailableFormats()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.8666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Mathielen\ImportEngine\Storage;
3
4
use Mathielen\ImportEngine\Storage\Format\CsvFormat;
5
6
class LocalFileStorageUnitTest extends \PHPUnit_Framework_TestCase
7
{
8
9
    public function testGetAvailableFormats()
10
    {
11
        $storage = new LocalFileStorage (new \SplFileObject('tests/metadata/testfiles/100.csv'), new CsvFormat());
12
13
        $this->assertEquals([
14
            'csv',
15
            'excel',
16
            'xml',
17
            'json',
18
            'zlib'
19
        ], $storage->getAvailableFormats());
20
    }
21
22
}
23