|
178 | 178 | </config>',
|
179 | 179 | [
|
180 | 180 | "Element 'virtualType', attribute 'name': [facet 'pattern'] The value '' is not accepted by the pattern '" .
|
181 |
| - "([a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)(\\\\[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*" . |
182 |
| - ")*'." . |
| 181 | + "(\\\\?[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)" . |
| 182 | + "(\\\\[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)*'." . |
183 | 183 | "\nLine: 2\n",
|
184 | 184 | "Element 'virtualType', attribute 'name': '' is not a valid value of the atomic type 'phpClassName'." .
|
185 | 185 | "\nLine: 2\n",
|
|
188 | 188 | "\nLine: 2\n",
|
189 | 189 | ],
|
190 | 190 | ],
|
191 |
| - 'virtualtype with invalid_name' => [ |
192 |
| - '<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
193 |
| - <virtualType name="\\BackslashPrefix\\IsNotAllowed" type="TypeName" shared="true"/> |
194 |
| - </config>', |
195 |
| - [ |
196 |
| - "Element 'virtualType', attribute 'name': [facet 'pattern'] The value '\\BackslashPrefix\\IsNotAllowed' " . |
197 |
| - "is not accepted by the pattern '" . |
198 |
| - "([a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)(\\\\[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*" . |
199 |
| - ")*'." . |
200 |
| - "\nLine: 2\n", |
201 |
| - "Element 'virtualType', attribute 'name': '\\BackslashPrefix\\IsNotAllowed' " . |
202 |
| - "is not a valid value of the atomic type 'phpClassName'." . |
203 |
| - "\nLine: 2\n", |
204 |
| - "Element 'virtualType', attribute 'name': Warning: No precomputed value available, the value was either " . |
205 |
| - "invalid or something strange happend." . |
206 |
| - "\nLine: 2\n", |
207 |
| - ], |
208 |
| - ], |
209 | 191 | 'virtualtype with empty_type' => [
|
210 | 192 | '<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
211 | 193 | <virtualType name="Name" type="" shared="true"/>
|
212 | 194 | </config>',
|
213 | 195 | [
|
214 | 196 | "Element 'virtualType', attribute 'type': [facet 'pattern'] The value '' is not accepted by the pattern '" .
|
215 |
| - "([a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)(\\\\[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*" . |
216 |
| - ")*'." . |
| 197 | + "(\\\\?[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)" . |
| 198 | + "(\\\\[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)*'." . |
217 | 199 | "\nLine: 2\n",
|
218 | 200 | "Element 'virtualType', attribute 'type': '' is not a valid value of the atomic type 'phpClassName'." .
|
219 | 201 | "\nLine: 2\n",
|
|
226 | 208 | [
|
227 | 209 | "Element 'virtualType', attribute 'name': [facet 'pattern'] The value '777Digits\\IsNotAllowed' " .
|
228 | 210 | "is not accepted by the pattern '" .
|
229 |
| - "([a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)(\\\\[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*" . |
230 |
| - ")*'." . |
| 211 | + "(\\\\?[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)" . |
| 212 | + "(\\\\[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)*'." . |
231 | 213 | "\nLine: 2\n",
|
232 | 214 | "Element 'virtualType', attribute 'name': '777Digits\\IsNotAllowed' " .
|
233 | 215 | "is not a valid value of the atomic type 'phpClassName'." .
|
|
237 | 219 | "\nLine: 2\n",
|
238 | 220 | ],
|
239 | 221 | ],
|
| 222 | + 'virtualtype with digits_and_prefix_slash' => [ |
| 223 | + '<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 224 | + <virtualType name="\\777Digits\\IsNotAllowed" type="TypeName" shared="true"/> |
| 225 | + </config>', |
| 226 | + [ |
| 227 | + "Element 'virtualType', attribute 'name': [facet 'pattern'] The value '\\777Digits\\IsNotAllowed' " . |
| 228 | + "is not accepted by the pattern '" . |
| 229 | + "(\\\\?[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)" . |
| 230 | + "(\\\\[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*)*'." . |
| 231 | + "\nLine: 2\n", |
| 232 | + "Element 'virtualType', attribute 'name': '\\777Digits\\IsNotAllowed' " . |
| 233 | + "is not a valid value of the atomic type 'phpClassName'." . |
| 234 | + "\nLine: 2\n", |
| 235 | + "Element 'virtualType', attribute 'name': Warning: No precomputed value available, the value was either " . |
| 236 | + "invalid or something strange happend." . |
| 237 | + "\nLine: 2\n", |
| 238 | + ], |
| 239 | + ], |
240 | 240 | ];
|
0 commit comments