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

LengthTest::testLength()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Aerophant\RamdaTest;
4
5
use function Aerophant\Ramda\length;
6
use PHPUnit\Framework\TestCase;
7
8
class LengthTest extends TestCase
9
{
10
  public function testLength()
11
  {
12
    $array = [1, 2, 3, 4, 5];
13
    $expect = 5;
14
    $actual = length()($array);
15
    $this->assertEquals($expect, $actual);
16
  }
17
}
18