Completed
Push — master ( 24a9b5...f93101 )
by Siwapun
03:29
created

JoinTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

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