RequestTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetCryptUrl() 0 10 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