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

SumTest::testSum()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
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