|
172 | 172 | "\nLine: 6\n"
|
173 | 173 | ],
|
174 | 174 | ],
|
| 175 | + 'virtualtype with empty_name' => [ |
| 176 | + '<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 177 | + <virtualType name="" type="TypeName" shared="true"/> |
| 178 | + </config>', |
| 179 | + [ |
| 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 | + ")*'." . |
| 183 | + "\nLine: 2\n", |
| 184 | + "Element 'virtualType', attribute 'name': '' is not a valid value of the atomic type 'phpClassName'." . |
| 185 | + "\nLine: 2\n", |
| 186 | + "Element 'virtualType', attribute 'name': Warning: No precomputed value available, the value was either " . |
| 187 | + "invalid or something strange happend." . |
| 188 | + "\nLine: 2\n", |
| 189 | + ], |
| 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 | + 'virtualtype with empty_type' => [ |
| 210 | + '<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 211 | + <virtualType name="Name" type="" shared="true"/> |
| 212 | + </config>', |
| 213 | + [ |
| 214 | + "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 | + ")*'." . |
| 217 | + "\nLine: 2\n", |
| 218 | + "Element 'virtualType', attribute 'type': '' is not a valid value of the atomic type 'phpClassName'." . |
| 219 | + "\nLine: 2\n", |
| 220 | + ], |
| 221 | + ], |
| 222 | + 'virtualtype with invalid_type' => [ |
| 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]*)(\\\\[a-zA-Z_\x7f-\xc3\xbf][a-zA-Z0-9_\x7f-\xc3\xbf]*" . |
| 230 | + ")*'." . |
| 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 | + ], |
175 | 240 | ];
|
0 commit comments