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

ApplyTest::testApply()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

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