Passed
Pull Request — master (#25)
by Siwapun
04:37
created

SplitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

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