Completed
Push — develop ( d0e808...84afed )
by
unknown
17s queued 14s
created

ArchiveResultTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 3 1
A expectedFields() 0 6 1
1
<?php
2
namespace Dokobit\Gateway\Tests\Result\File;
3
4
use Dokobit\Gateway\Result\File\ArchiveResult;
5
use Dokobit\Gateway\Tests\TestCase;
6
use Dokobit\Gateway\Tests\Result\TestResultFieldsTrait;
7
8
class ArchiveResultTest extends TestCase
9
{
10
    private $method;
11
12
    protected function setUp(): void
13
    {
14
        $this->method = new ArchiveResult();
15
    }
16
17
    use TestResultFieldsTrait;
18
19
    public function expectedFields()
20
    {
21
        return [
22
            ['status'],
23
            ['file', ['key1' => 'value1']],
24
            ['structure', ['key2' => 'value2']],
25
        ];
26
    }
27
}
28