Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | public function testPassesThroughFilterFailure() |
||
23 | { |
||
24 | $filter = new SkipNulls; |
||
25 | $expected = false; |
||
26 | |||
27 | $key = 1; |
||
28 | $value = null; |
||
29 | $this->assertEquals($expected, $filter->passes($key, $value)); |
||
30 | |||
31 | $key = null; |
||
32 | $value = null; |
||
33 | $this->assertEquals($expected, $filter->passes($key, $value)); |
||
34 | } |
||
35 | |||
50 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.