@@ -90,6 +90,8 @@ public function testPassByReference()
90
90
unset($ found [0 ]['type_hint_token ' ]);
91
91
unset($ found [0 ]['type_hint_end_token ' ]);
92
92
unset($ found [0 ]['comma_token ' ]);
93
+ unset($ found [0 ]['reference_token ' ]);
94
+ unset($ found [0 ]['variadic_token ' ]);
93
95
$ this ->assertSame ($ expected , $ found );
94
96
95
97
}//end testPassByReference()
@@ -126,6 +128,8 @@ public function testArrayHint()
126
128
unset($ found [0 ]['type_hint_token ' ]);
127
129
unset($ found [0 ]['type_hint_end_token ' ]);
128
130
unset($ found [0 ]['comma_token ' ]);
131
+ unset($ found [0 ]['reference_token ' ]);
132
+ unset($ found [0 ]['variadic_token ' ]);
129
133
$ this ->assertSame ($ expected , $ found );
130
134
131
135
}//end testArrayHint()
@@ -175,6 +179,10 @@ public function testTypeHint()
175
179
unset($ found [1 ]['type_hint_end_token ' ]);
176
180
unset($ found [0 ]['comma_token ' ]);
177
181
unset($ found [1 ]['comma_token ' ]);
182
+ unset($ found [0 ]['reference_token ' ]);
183
+ unset($ found [1 ]['reference_token ' ]);
184
+ unset($ found [0 ]['variadic_token ' ]);
185
+ unset($ found [1 ]['variadic_token ' ]);
178
186
$ this ->assertSame ($ expected , $ found );
179
187
180
188
}//end testTypeHint()
@@ -211,6 +219,8 @@ public function testSelfTypeHint()
211
219
unset($ found [0 ]['type_hint_token ' ]);
212
220
unset($ found [0 ]['type_hint_end_token ' ]);
213
221
unset($ found [0 ]['comma_token ' ]);
222
+ unset($ found [0 ]['reference_token ' ]);
223
+ unset($ found [0 ]['variadic_token ' ]);
214
224
$ this ->assertSame ($ expected , $ found );
215
225
216
226
}//end testSelfTypeHint()
@@ -260,6 +270,10 @@ public function testNullableTypeHint()
260
270
unset($ found [1 ]['type_hint_end_token ' ]);
261
271
unset($ found [0 ]['comma_token ' ]);
262
272
unset($ found [1 ]['comma_token ' ]);
273
+ unset($ found [0 ]['reference_token ' ]);
274
+ unset($ found [1 ]['reference_token ' ]);
275
+ unset($ found [0 ]['variadic_token ' ]);
276
+ unset($ found [1 ]['variadic_token ' ]);
263
277
$ this ->assertSame ($ expected , $ found );
264
278
265
279
}//end testNullableTypeHint()
@@ -296,6 +310,8 @@ public function testVariable()
296
310
unset($ found [0 ]['type_hint_token ' ]);
297
311
unset($ found [0 ]['type_hint_end_token ' ]);
298
312
unset($ found [0 ]['comma_token ' ]);
313
+ unset($ found [0 ]['reference_token ' ]);
314
+ unset($ found [0 ]['variadic_token ' ]);
299
315
$ this ->assertSame ($ expected , $ found );
300
316
301
317
}//end testVariable()
@@ -333,6 +349,8 @@ public function testSingleDefaultValue()
333
349
unset($ found [0 ]['type_hint_token ' ]);
334
350
unset($ found [0 ]['type_hint_end_token ' ]);
335
351
unset($ found [0 ]['comma_token ' ]);
352
+ unset($ found [0 ]['reference_token ' ]);
353
+ unset($ found [0 ]['variadic_token ' ]);
336
354
unset($ found [0 ]['default_token ' ]);
337
355
unset($ found [0 ]['default_equal_token ' ]);
338
356
$ this ->assertSame ($ expected , $ found );
@@ -385,6 +403,10 @@ public function testDefaultValues()
385
403
unset($ found [1 ]['type_hint_end_token ' ]);
386
404
unset($ found [0 ]['comma_token ' ]);
387
405
unset($ found [1 ]['comma_token ' ]);
406
+ unset($ found [0 ]['reference_token ' ]);
407
+ unset($ found [1 ]['reference_token ' ]);
408
+ unset($ found [0 ]['variadic_token ' ]);
409
+ unset($ found [1 ]['variadic_token ' ]);
388
410
unset($ found [0 ]['default_token ' ]);
389
411
unset($ found [1 ]['default_token ' ]);
390
412
unset($ found [0 ]['default_equal_token ' ]);
@@ -426,6 +448,8 @@ public function testBitwiseAndConstantExpressionDefaultValue()
426
448
unset($ found [0 ]['type_hint_token ' ]);
427
449
unset($ found [0 ]['type_hint_end_token ' ]);
428
450
unset($ found [0 ]['comma_token ' ]);
451
+ unset($ found [0 ]['reference_token ' ]);
452
+ unset($ found [0 ]['variadic_token ' ]);
429
453
unset($ found [0 ]['default_token ' ]);
430
454
unset($ found [0 ]['default_equal_token ' ]);
431
455
$ this ->assertSame ($ expected , $ found );
0 commit comments