Completed
Push — master ( 2f0783...0fb3d7 )
by Markus
03:33
created

LocalFileStorageUnitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetAvailableFormats() 0 12 1
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