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

UploadTest::testSuccess()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Dokobit\Gateway\Tests\Integration\File;
3
4
use Dokobit\Gateway\Query\File\Upload;
5
use Dokobit\Gateway\Result\File\UploadResult;
6
use Dokobit\Gateway\Tests\Integration\TestCase;
7
8
class UploadTest extends TestCase
9
{
10
    public function testSuccess()
11
    {
12
        /** @var UploadResult $result */
13
        $result = $this->client->get(new Upload(
14
            __DIR__ . '/../../data/document.pdf'
15
        ));
16
17
        $this->assertSame('ok', $result->getStatus());
18
        $this->assertNotEmpty($result->getToken());
19
    }
20
}
21