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

testGetAvailableFormats()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 12
rs 9.4285
cc 1
eloc 9
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