Passed
Push — master ( ff7474...c002dd )
by Gabriel
05:50
created

CompletePurchaseResponseTest::getNewResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
namespace ByTIC\Payments\Tests\Gateways\Providers\PlatiOnline\Message;
4
5
use ByTIC\Payments\Gateways\Providers\PlatiOnline\Message\CompletePurchaseRequest;
6
use ByTIC\Payments\Gateways\Providers\PlatiOnline\Message\CompletePurchaseResponse;
7
use ByTIC\Payments\Tests\AbstractTest;
8
use ByTIC\Payments\Tests\Gateways\Providers\AbstractGateway\Message\CompletePurchaseResponseTestTrait;
9
use Symfony\Component\HttpFoundation\Request;
10
11
/**
12
 * Class CompletePurchaseResponseTest
13
 * @package ByTIC\Payments\Tests\Gateways\Providers\PlatiOnline\Message
14
 */
15
class CompletePurchaseResponseTest extends AbstractTest
16
{
17
    use CompletePurchaseResponseTestTrait;
18
19
    protected function getNewResponse(): CompletePurchaseResponse
20
    {
21
        $request = new CompletePurchaseRequest($this->client, new Request());
22
23
        return new CompletePurchaseResponse($request, []);
24
    }
25
}
26