getNewResponse()   A
last analyzed

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\Mobilpay\Tests\Message;
4
5
use ByTIC\Payments\Mobilpay\Message\ServerCompletePurchaseRequest;
6
use ByTIC\Payments\Mobilpay\Message\ServerCompletePurchaseResponse;
7
use ByTIC\Payments\Mobilpay\Tests\AbstractTest;
8
use Symfony\Component\HttpFoundation\Request;
9
10
/**
11
 * Class ServerCompletePurchaseResponseTest
12
 * @package ByTIC\Payments\Mobilpay\Tests\Message
13
 */
14
class ServerCompletePurchaseResponseTest extends AbstractTest
15
{
16
    public function testHasSendMethod()
17
    {
18
        $response = $this->getNewResponse();
19
20
        static::assertTrue(method_exists($response, 'send'));
21
    }
22
23
    /**
24
     * @return ServerCompletePurchaseResponse
25
     */
26
    protected function getNewResponse()
27
    {
28
        $request = new ServerCompletePurchaseRequest($this->client, new Request());
29
30
        return new ServerCompletePurchaseResponse($request, []);
31
    }
32
}
33