HasSecurityParamsTraitTest::test_getWebsite()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
1
<?php
2
3
namespace ByTIC\Omnipay\PlatiOnline\Tests\Traits;
4
5
use ByTIC\Omnipay\PlatiOnline\Gateway;
6
use ByTIC\Omnipay\PlatiOnline\Tests\AbstractTest;
7
8
/**
9
 * Class HasSecurityParamsTraitTest
10
 * @package ByTIC\Omnipay\PlatiOnline\Tests\Tests
11
 */
12
class HasSecurityParamsTraitTest extends AbstractTest
13
{
14
    public function test_getWebsite()
15
    {
16
        $gateway = new Gateway();
17
        self::assertNull($gateway->getWebsite());
18
        $gateway->setWebsite('Test');
19
        self::assertSame('Test', $gateway->getWebsite());
20
    }
21
}
22