Completed
Push — master ( 93d710...74f423 )
by Siwapun
04:08
created

PairTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testPair() 0 7 1
1
<?php
2
3
namespace Aerophant\RamdaTest;
4
5
use function Aerophant\Ramda\pair;
6
use PHPUnit\Framework\TestCase;
7
8
class PairTest extends TestCase
9
{
10
  public function testPair()
11
  {
12
    $firstValue = 'foo';
13
    $secondValue = 'bar';
14
    $expect = ['foo', 'bar'];
15
    $actual = pair($firstValue)($secondValue);
16
    $this->assertEquals($expect, $actual);
17
  }
18
}
19