HasSecurityParamsTraitTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_getWebsite() 0 6 1
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