Test Failed
Branch master (3f2e80)
by Gabriel
03:43 queued 01:39
created

GatewayTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testPurchaseRequestEndpointUrl() 0 6 1
A test_getApiUrl() 0 8 1
1
<?php
2
3
namespace ByTIC\Omnipay\Paylike\Tests;
4
5
use ByTIC\Omnipay\Paylike\Gateway;
6
use ByTIC\Omnipay\Paylike\Message\PurchaseRequest;
7
8
/**
9
 * Class HelperTest
10
 * @package ByTIC\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