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