Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function test() |
||
10 | { |
||
11 | $isEven = function (int $n) { return $n % 2 === 0; }; |
||
12 | $isOdd = function (int $n) { return $n % 2 === 1; }; |
||
13 | |||
14 | $this->assertTrue( |
||
15 | none($isEven)([1, 3, 5, 7, 9, 11]) |
||
16 | ); |
||
17 | |||
18 | $this->assertFalse( |
||
19 | none($isEven)([1, 3, 5, 7, 9, 10]) |
||
20 | ); |
||
21 | |||
22 | $this->assertFalse( |
||
23 | none($isOdd)([1, 3, 5, 7, 9, 11]) |
||
24 | ); |
||
25 | } |
||
26 | } |
||
27 |