GatewayTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_getApiUrl() 0 8 1
A testPurchaseRequestEndpointUrl() 0 6 1
1
<?php
2
3
namespace Paytic\Omnipay\Paylike\Tests;
4
5
use Paytic\Omnipay\Paylike\Gateway;
6
use Paytic\Omnipay\Paylike\Message\PurchaseRequest;
7
8
/**
9
 * Class HelperTest
10
 * @package Paytic\Omnipay\Paylike\Tests
11
 */
12
class GatewayTest extends AbstractTest
13
{
14
    public function test_getApiUrl()
15
    {
16
        $gateway = new Gateway();
17
18
        // INITIAL TEST MODE IS TRUE
19
        self::assertEquals(
20
            'https://api.Paylike.com',
21
            $gateway->getApiUrl()
22
        );
23
    }
24
25
    public function testPurchaseRequestEndpointUrl()
26
    {
27
        $gateway = new Gateway();
28
29
        $request = $gateway->purchase();
30
        self::assertInstanceOf(PurchaseRequest::class, $request);
31
    }
32
}
33