Completed
Push — master ( 05a429...b45f19 )
by Gabriel
10:23 queued 05:22
created

HelperTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGenerateChecksum() 0 6 1
1
<?php
2
3
namespace ByTIC\Omnipay\Twispay\Tests;
4
5
6
use ByTIC\Omnipay\Twispay\Helper;
7
8
/**
9
 * Class HelperTest
10
 * @package ByTIC\Omnipay\Twispay\Tests
11
 */
12
class HelperTest extends AbstractTest
13
{
14
    public function testGenerateChecksum()
15
    {
16
        $data = ['test' => 1, 'test5' => 2];
17
        self::assertEquals(
18
            'bV+EPPOaxuut0IjVdAyOFSg0/j38gxT6C/RIxmF8yTD4ZzlHL5xFI62JiOeSByYlADWkSEi/u/nszcjFgXvk6A==',
19
            Helper::generateChecksum($data, '23112345654689897')
20
        );
21
    }
22
}
23