Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class CurryNTest extends TestCase |
||
8 | { |
||
9 | |||
10 | public function testCurryNWithInvokeFunctionDirectly() |
||
11 | { |
||
12 | $curriedReduce = curryN('array_reduce', 3); |
||
13 | $add = function ($a, $b) { |
||
14 | return $a + $b; |
||
15 | }; |
||
16 | $result = $curriedReduce([4,5,6], $add, 0); |
||
17 | $this->assertEquals(15, $result); |
||
18 | } |
||
19 | |||
20 | public function testCurryNWithAutoCurry() |
||
28 | } |
||
29 | } |
||
30 |