GatewayTest::testTestMode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 10
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