ArrayStorageTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testInfo() 0 11 1
1
<?php
2
namespace Mathielen\ImportEngine\Storage;
3
4
class ArrayStorageTest extends \PHPUnit_Framework_TestCase
5
{
6
7
    public function testInfo()
8
    {
9
        $a = [];
10
        $storage = new ArrayStorage($a);
11
12
        $this->assertEquals(new StorageInfo([
13
            'name' => 'Array Storage',
14
            'format' => 'Array Storage',
15
            'count' => 0
16
        ]), $storage->info());
17
    }
18
19
}
20