Completed
Push — master ( 78797b...87ecbd )
by Siwapun
05:16
created

SumTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

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