Completed
Push — master ( 06a480...8871bc )
by Siwapun
04:48
created

RepeatTest::testRepeat()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

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