Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | function it_collects_data_from_dictionaries() |
||
18 | { |
||
19 | $this->addDictionary('foo', ['key1', 'key2'], ['value1', 'value2']); |
||
20 | $this->addDictionary('foo', ['key1', 'key2'], ['value1', 'value2']); |
||
21 | $this->addDictionary('bar', ['keyA', 'keyB'], ['valueA', 'valueB']); |
||
22 | |||
23 | $this->getDictionaries()->shouldIterateLike([ |
||
24 | 'foo' => [ |
||
25 | [ |
||
26 | 'key' => 'key1', |
||
27 | 'value' => 'value1', |
||
28 | ], |
||
29 | [ |
||
30 | 'key' => 'key2', |
||
31 | 'value' => 'value2', |
||
32 | ], |
||
33 | ], |
||
34 | 'bar' => [ |
||
35 | [ |
||
36 | 'key' => 'keyA', |
||
37 | 'value' => 'valueA', |
||
38 | ], |
||
39 | [ |
||
40 | 'key' => 'keyB', |
||
41 | 'value' => 'valueB', |
||
42 | ], |
||
52 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.