Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class FindTest extends TestCase |
||
8 | { |
||
9 | public function testFindWithExistingValue() |
||
10 | { |
||
11 | $isEqual3 = function ($it) { |
||
12 | return 3 == $it; |
||
13 | }; |
||
14 | $list = [1, 2, 3, 4, 5]; |
||
15 | $expect = 3; |
||
16 | $actual = find($isEqual3)($list); |
||
17 | $this->assertEquals($expect, $actual); |
||
18 | } |
||
19 | |||
20 | public function testFindWithNonExistingValue() |
||
28 | } |
||
29 | } |
||
30 |