| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | View Code Duplication | public function test_collection_gets_shallow_path_value() |
|
| 18 | { |
||
| 19 | $collection = [ |
||
| 20 | 'foo' => 'bar', |
||
| 21 | ]; |
||
| 22 | $dotter = new ArrayDotCollection; |
||
| 23 | $expected = 'bar'; |
||
| 24 | $actual = $dotter->get($collection, 'foo'); |
||
| 25 | |||
| 26 | $this->assertEquals($expected, $actual); |
||
| 27 | } |
||
| 28 | |||
| 77 |
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.