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

RequestTest   A

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 2
    public function testGetCryptUrl()
8
    {
9 2
        $request =  new \Promopult\Integra\Request(
10 2
            'hello',
11 2
            ['name' => 'name'],
12 2
            new \Promopult\Integra\Test\IdentityMock,
13 2
            new \Promopult\Integra\Test\CryptMock
14
        );
15
16 2
        $this->assertEquals('host/path/hello?k=zaahash%7B%22name%22%3A%22name%22%7D', $request->getCryptUrl());
17 2
    }
18
}
19