| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function packDataDataProvider(): array |
||
| 18 | { |
||
| 19 | return [ |
||
| 20 | // #0, list of scalars |
||
| 21 | [ |
||
| 22 | [ |
||
| 23 | 'a' => 1, |
||
| 24 | 'b' => 2 |
||
| 25 | ], |
||
| 26 | 'a=1&b=2' |
||
| 27 | ], |
||
| 28 | // #1, nested array |
||
| 29 | [ |
||
| 30 | [ |
||
| 31 | 'arr' => [ |
||
| 32 | 'key' => 'value' |
||
| 33 | ] |
||
| 34 | ], |
||
| 35 | 'arr[key]=value' |
||
| 36 | ], |
||
| 37 | // #2, deeper nested arrays |
||
| 38 | [ |
||
| 39 | [ |
||
| 40 | 'field' => [ |
||
| 41 | [ |
||
| 42 | 'key' => 'value' |
||
| 43 | ] |
||
| 44 | ] |
||
| 45 | ], |
||
| 46 | 'field[0][key]=value' |
||
| 47 | ] |
||
| 110 |