| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 13 | 
| Ratio | 100 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 29 | View Code Duplication | public function test_collection_gets_nested_path_value()  | 
            |
| 30 |     { | 
            ||
| 31 | $collection = [  | 
            ||
| 32 | 'foo' => [  | 
            ||
| 33 | 'bar' => 'acme'  | 
            ||
| 34 | ],  | 
            ||
| 35 | ];  | 
            ||
| 36 | $dotter = new ArrayDotCollection;  | 
            ||
| 37 | $expected = 'acme';  | 
            ||
| 38 | $actual = $dotter->get($collection, 'foo.bar');  | 
            ||
| 39 | |||
| 40 | $this->assertEquals($expected, $actual);  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 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.