testCreateAndSetAuthentication()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 14
rs 9.9666
cc 1
nc 1
nop 0
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