Completed
Push — master ( 74f423...06a480 )
by Siwapun
05:31 queued 03:49
created

RemoveTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRemove() 0 8 1
1
<?php
2
3
namespace Aerophant\RamdaTest;
4
5
use function Aerophant\Ramda\remove;
6
use PHPUnit\Framework\TestCase;
7
8
class RemoveTest extends TestCase
9
{
10
  public function testRemove()
11
  {
12
    $array = [1, 2, 3, 4, 5, 6, 7, 8];
13
    $start = 2;
14
    $count = 3;
15
    $expect = [1, 2, 6, 7, 8];
16
    $actual = remove($start)($count)($array);
17
    $this->assertEquals($expect, $actual);
18
  }
19
}
20