Passed
Pull Request — master (#6)
by Siwapun
04:52
created

ApplyTest   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 testApply() 0 8 1
1
<?php
2
namespace Aerophant\RamdaTest;
3
4
use function Aerophant\Ramda\add;
5
use function Aerophant\Ramda\apply;
6
use PHPUnit\Framework\TestCase;
7
8
class ApplyTest extends TestCase
9
{
10
  public function testApply()
11
  {
12
    $add = add();
13
    $firstArg = 1;
14
    $secondArg = 2;
15
    $expectedResult = 3;
16
    $actualResult = apply($add)([$firstArg, $secondArg]);
17
    $this->assertEquals($expectedResult, $actualResult);
18
  }
19
}
20