CredentialsTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0
ccs 6
cts 6
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstructor() 0 8 1
1
<?php
2
/**
3
 * @project Promopult Integra client library
4
 */
5
6
namespace Promopult\Integra\Test;
7
8
9
class CredentialsTest extends \PHPUnit\Framework\TestCase
10
{
11 1
    public function testConstructor()
12
    {
13 1
        $identity = new \Promopult\Integra\Credentials('hash', 'key', 'path', 'host');
14
15 1
        $this->assertEquals('hash', $identity->getHash());
16 1
        $this->assertEquals('key', $identity->getCryptKey());
17 1
        $this->assertEquals('path', $identity->getPartnerPath());
18 1
        $this->assertEquals('host', $identity->getApiHost());
19 1
    }
20
}
21