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

RequestTest::testGetCryptUrl()   A

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 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