RequestTest::testGetCryptUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 10
rs 10
c 0
b 0
f 0
ccs 7
cts 7
cp 1
crap 1
1
<?php
2
3
namespace Promopult\Integra\Test;
4
5
class RequestTest extends \PHPUnit\Framework\TestCase
6
{
7 1
    public function testGetCryptUrl()
8
    {
9 1
        $request =  new \Promopult\Integra\Request(
10 1
            'hello',
11 1
            ['name' => 'name'],
12 1
            new \Promopult\Integra\Test\CredentialsMock,
13 1
            new \Promopult\Integra\Test\CryptMock
14
        );
15
16 1
        $this->assertEquals('host/path/hello?k=zaahash%7B%22name%22%3A%22name%22%7D', $request->getCryptUrl());
17 1
    }
18
}
19