Passed
Push — master ( 6bfa44...e0849e )
by Siwapun
06:09
created

MapTest   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 testMap() 0 7 1
1
<?php
2
namespace Aerophant\RamdaTest;
3
4
use function Aerophant\Ramda\map;
5
use PHPUnit\Framework\TestCase;
6
7
class MapTest extends TestCase
8
{
9
  public function testMap()
10
  {
11
    $array = [1, 2, 3, 4];
12
    $add10 = function ($it) {
13
      return $it + 10;
14
    };
15
    $this->assertEquals([11, 12, 13, 14], map($add10)($array));
16
  }
17
}
18