| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class AnyTest extends TestCase |
||
| 8 | { |
||
| 9 | |||
| 10 | public function testAnyAndExpectTrue() |
||
| 11 | { |
||
| 12 | $lessThan2 = function ($it) { |
||
| 13 | return $it < 2; |
||
| 14 | }; |
||
| 15 | $this->assertTrue(any($lessThan2)([1, 2, 3, 4])); |
||
| 16 | } |
||
| 17 | |||
| 18 | public function testAnyAndExpectFalse() |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testAnyWithEmptyArray() |
||
| 34 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.