Passed
Branch develop (84afed)
by Paulius
02:35
created

CheckTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testStatusOk() 0 13 1
1
<?php
2
namespace Dokobit\Gateway\Tests\Integration\File;
3
4
use Dokobit\Gateway\Query\File\Check;
5
use Dokobit\Gateway\Result\File\CheckResult;
6
use Dokobit\Gateway\Tests\Integration\TestCase;
7
8
class CheckTest extends TestCase
9
{
10
    public function testStatusOk()
11
    {
12
        $file = __DIR__.'/../../data/signed.pdf';
13
14
        $type = 'pdf';
15
16
        /** @var CheckResult $result */
17
        $result = $this->client->get(
18
            new Check($type, $file)
19
        );
20
21
        $this->assertSame('ok', $result->getStatus());
22
        $this->assertNotEmpty($result->getStructure());
23
    }
24
}
25