Completed
Pull Request — master (#11)
by Eugene
45:13
created

AzineContactMergerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testMerge() 0 7 1
1
<?php
2
3
namespace Azine\HybridAuthBundle\Tests\Services;
4
5
use Azine\HybridAuthBundle\Services\AzineContactMerger;
6
use Azine\HybridAuthBundle\Tests\AzineTestCase;
7
8
class AzineContactMergerTest extends AzineTestCase
9
{
10
    public function testMerge()
11
    {
12
        $merger = new AzineContactMerger();
13
        $input = array('xing' => array('a', 'b', 'c', 'd'), 'linkedin' => array('e', 'f', 'g'));
14
        $output = array('a', 'b', 'c', 'd', 'e', 'f', 'g');
15
        $this->assertSame($output, $merger->merge($input));
16
    }
17
}
18