Completed
Push — master ( 90d3ab...ce3b38 )
by Dmitry
01:21
created

CredentialsTest::testConstructor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 8
rs 10
c 0
b 0
f 0
ccs 6
cts 6
cp 1
crap 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 2
    public function testConstructor()
12
    {
13 2
        $identity = new \Promopult\Integra\Credentials('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