AuthenticationTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreateAndSetAuthentication() 0 14 1
1
<?php
2
3
namespace Tests\Classes;
4
5
use PHPUnit\Framework\TestCase;
6
7
class AuthenticationTest extends TestCase
8
{
9
    public function testCreateAndSetAuthentication()
10
    {
11
        $auth = new \Ipag\Classes\Authentication('[email protected]', '123456');
12
        $auth->setPartner('[email protected]');
13
14
        $this->assertEquals($auth->getIdentification(), '[email protected]');
15
        $this->assertEquals($auth->getApiKey(), '123456');
16
        $this->assertEquals($auth->getPartner(), '[email protected]');
17
18
        $auth->setIdentification('[email protected]')
19
            ->setApiKey('654321');
20
21
        $this->assertEquals($auth->getIdentification(), '[email protected]');
22
        $this->assertEquals($auth->getApiKey(), '654321');
23
    }
24
}
25