Completed
Pull Request — master (#4)
by Siwapun
21:56 queued 06:35
created

ConcatTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConcat() 0 7 1
1
<?php
2
namespace Aerophant\RamdaTest;
3
4
use function Aerophant\Ramda\concat;
5
use PHPUnit\Framework\TestCase;
6
7
class ConcatTest extends TestCase
8
{
9
  public function testConcat()
10
  {
11
    $firstArray = [1, 2, 3];
12
    $secondArray = [4, 5, 6];
13
    $expectedResult = [1, 2, 3, 4, 5, 6];
14
    $actualResult = concat($firstArray)($secondArray);
15
    $this->assertEquals($expectedResult, $actualResult);
16
  }
17
}
18