Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 1 | public function testWillFindUsingDotNotation() |
|
38 | { |
||
39 | $data = [ |
||
40 | 1 | 'i' => [ |
|
41 | "can't" => [ |
||
42 | 'get' => [ |
||
43 | 'no' => 'satisfaction', |
||
44 | ], |
||
45 | ], |
||
46 | ], |
||
47 | ]; |
||
48 | 1 | $key = "i.can't.get.no"; |
|
49 | 1 | $result = Arr::get($data, $key); |
|
50 | 1 | $this->assertEquals('satisfaction', $result); |
|
51 | 1 | } |
|
53 |