@@ -73,6 +73,25 @@ public static function dataDecodingProvider(): array
73
73
'array.array.0 ' => 'again ' ,
74
74
],
75
75
],
76
+ 'Feuil1 ' => [
77
+ [
78
+ 'bool ' => 0.0 ,
79
+ 'int ' => 1 ,
80
+ 'float ' => 1.618 ,
81
+ 'string ' => 'Hello ' ,
82
+ 'object.date ' => '2000-01-01 13:37:00.000000 ' ,
83
+ 'object.timezone_type ' => 3 ,
84
+ 'object.timezone ' => 'Europe/Berlin ' ,
85
+ 'array.bool ' => 1 ,
86
+ 'array.int ' => 3 ,
87
+ 'array.float ' => 3.14 ,
88
+ 'array.string ' => 'World ' ,
89
+ 'array.object.date ' => '2000-01-01 13:37:00.000000 ' ,
90
+ 'array.object.timezone_type ' => 3 ,
91
+ 'array.object.timezone ' => 'Europe/Berlin ' ,
92
+ 'array.array.0 ' => 'again ' ,
93
+ ],
94
+ ],
76
95
]],
77
96
[__DIR__ .'/Resources/encoded.xlsx ' , ExcelEncoder::XLSX , [
78
97
'Sheet_0 ' => [
@@ -94,6 +113,25 @@ public static function dataDecodingProvider(): array
94
113
'array.array.0 ' => 'again ' ,
95
114
],
96
115
],
116
+ 'Feuil1 ' => [
117
+ [
118
+ 'bool ' => 0 ,
119
+ 'int ' => 1 ,
120
+ 'float ' => 1.618 ,
121
+ 'string ' => 'Hello ' ,
122
+ 'object.date ' => '2000-01-01 13:37:00.000000 ' ,
123
+ 'object.timezone_type ' => 3 ,
124
+ 'object.timezone ' => 'Europe/Berlin ' ,
125
+ 'array.bool ' => 1 ,
126
+ 'array.int ' => 3 ,
127
+ 'array.float ' => 3.14 ,
128
+ 'array.string ' => 'World ' ,
129
+ 'array.object.date ' => '2000-01-01 13:37:00.000000 ' ,
130
+ 'array.object.timezone_type ' => 3 ,
131
+ 'array.object.timezone ' => 'Europe/Berlin ' ,
132
+ 'array.array.0 ' => 'again ' ,
133
+ ],
134
+ ],
97
135
]],
98
136
];
99
137
}
@@ -111,50 +149,43 @@ public function testDecode(string $file, string $format, array $result): void
111
149
*/
112
150
private function getInitialData (): array
113
151
{
114
- return [[
115
- [
116
- 'bool ' => false ,
117
- 'int ' => 1 ,
118
- 'float ' => 1.618 ,
119
- 'string ' => 'Hello ' ,
120
- 'object ' => new \DateTime ('2000-01-01 13:37:00 ' ),
121
- 'array ' => [
122
- 'bool ' => true ,
123
- 'int ' => 3 ,
124
- 'float ' => 3.14 ,
125
- 'string ' => 'World ' ,
152
+ return [
153
+ 'Sheet_0 ' => [
154
+ [
155
+ 'bool ' => false ,
156
+ 'int ' => 1 ,
157
+ 'float ' => 1.618 ,
158
+ 'string ' => 'Hello ' ,
126
159
'object ' => new \DateTime ('2000-01-01 13:37:00 ' ),
127
160
'array ' => [
128
- 'again ' ,
161
+ 'bool ' => true ,
162
+ 'int ' => 3 ,
163
+ 'float ' => 3.14 ,
164
+ 'string ' => 'World ' ,
165
+ 'object ' => new \DateTime ('2000-01-01 13:37:00 ' ),
166
+ 'array ' => [
167
+ 'again ' ,
168
+ ],
129
169
],
130
170
],
131
171
],
132
- ]];
133
- }
134
-
135
- /**
136
- * @internal
137
- */
138
- private function getDecodedData (string $ sheetName ): array
139
- {
140
- return [
141
- $ sheetName => [
172
+ 'Feuil1 ' => [
142
173
[
143
- 'bool ' => 0.0 ,
174
+ 'bool ' => false ,
144
175
'int ' => 1 ,
145
176
'float ' => 1.618 ,
146
177
'string ' => 'Hello ' ,
147
- 'object.date ' => '2000-01-01 13:37:00.000000 ' ,
148
- 'object.timezone_type ' => 3 ,
149
- ' object.timezone ' => ' Europe/Berlin ' ,
150
- ' array.bool ' => 1 ,
151
- ' array.int ' => 3 ,
152
- ' array.float ' => 3.14 ,
153
- ' array.string ' => ' World ' ,
154
- 'array.object.date ' => ' 2000-01-01 13:37:00.000000 ' ,
155
- ' array.object.timezone_type ' => 3 ,
156
- ' array.object.timezone ' => ' Europe/Berlin ' ,
157
- ' array.array.0 ' => ' again ' ,
178
+ 'object ' => new \ DateTime ( '2000-01-01 13:37:00 ' ) ,
179
+ 'array ' => [
180
+ ' bool ' => true ,
181
+ ' int ' => 3 ,
182
+ ' float ' => 3.14 ,
183
+ ' string ' => ' World ' ,
184
+ ' object ' => new \ DateTime ( ' 2000-01-01 13:37:00 ' ) ,
185
+ 'array ' => [
186
+ ' again ' ,
187
+ ] ,
188
+ ] ,
158
189
],
159
190
],
160
191
];
0 commit comments