Completed
Push — master ( 1bb023...ecb5f2 )
by Dmitry
01:40
created

IdentityTest   A

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 IdentityTest extends \PHPUnit\Framework\TestCase
10
{
11 2
    public function testConstructor()
12
    {
13 2
        $identity = new \Promopult\Integra\Identity('hash', 'key', 'path', 'host');
14
15 2
        $this->assertEquals('hash', $identity->getHash());
16 2
        $this->assertEquals('key', $identity->getCryptKey());
17 2
        $this->assertEquals('path', $identity->getPartnerPath());
18 2
        $this->assertEquals('host', $identity->getApiHost());
19 2
    }
20
}
21