Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
55 | public function testGet() |
||
56 | { |
||
57 | $this->fallbacks = new Fallbacks($this->defaultData); |
||
58 | |||
59 | $this->assertEquals($this->defaultData['foo'], $this->fallbacks->get('foo')); |
||
60 | $this->assertEquals($this->defaultData['name']['first'], $this->fallbacks->get('name')['first']); |
||
61 | $this->assertEquals($this->defaultData['servers'], $this->fallbacks->get('servers')); |
||
62 | $this->assertEquals( |
||
63 | $this->defaultData['a']['very']['deep']['array']['x'], |
||
64 | $this->fallbacks->get('a')['very']['deep']['array']['x'] |
||
65 | ); |
||
66 | $this->assertEquals( |
||
67 | $this->defaultData['errorcodes'][404], |
||
68 | $this->fallbacks->get('errorcodes')[404] |
||
69 | ); |
||
70 | } |
||
71 | } |
||
72 |