GatewayTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testTestMode() 0 7 1
A setUp() 0 4 1
1
<?php
2
3
namespace ByTIC\Omnipay\PlatiOnline\Tests;
4
5
use ByTIC\Omnipay\PlatiOnline\Gateway;
6
7
/**
8
 * Class HelperTest
9
 * @package ByTIC\Omnipay\PlatiOnline\Tests
10
 */
11
class GatewayTest extends AbstractTest
12
{
13
    public function testTestMode()
14
    {
15
        $this->assertSame($this->gateway, $this->gateway->setTestMode(false));
16
        $this->assertSame(false, $this->gateway->getTestMode());
17
18
        $this->assertSame($this->gateway, $this->gateway->setTestMode(true));
19
        $this->assertSame(true, $this->gateway->getTestMode());
20
    }
21
22
    protected function setUp(): void
23
    {
24
        parent::setUp();
25
        $this->gateway = new Gateway();
0 ignored issues
show
Bug Best Practice introduced by
The property gateway does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
26
    }
27
}
28