Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | public function testPassesThroughFilterSuccess() |
||
9 | { |
||
10 | $filter = new SkipNulls; |
||
11 | $expected = true; |
||
12 | |||
13 | $key = 1; |
||
14 | $value = 1; |
||
15 | $this->assertEquals($expected, $filter->passes($key, $value)); |
||
16 | |||
17 | $key = null; |
||
18 | $value = 1; |
||
19 | $this->assertEquals($expected, $filter->passes($key, $value)); |
||
20 | } |
||
21 | |||
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.