@@ -362,7 +362,7 @@ public function testYield()
362
362
363
363
364
364
/**
365
- * Test arrow functions that use nullable namespace types .
365
+ * Test arrow functions that use nullable type with unqualified class name .
366
366
*
367
367
* @covers PHP_CodeSniffer\Tokenizers\PHP::processAdditional
368
368
*
@@ -424,29 +424,29 @@ public function testReturnTypePartiallyQualifiedClass()
424
424
*
425
425
* @return void
426
426
*/
427
- public function testNullableNamespace ()
427
+ public function testNullableUnqualifiedClassName ()
428
428
{
429
- $ token = $ this ->getTargetToken ('/* testNullableNamespace */ ' , T_FN );
429
+ $ token = $ this ->getTargetToken ('/* testNullableUnqualifiedClassName */ ' , T_FN );
430
430
$ this ->backfillHelper ($ token );
431
431
$ this ->scopePositionTestHelper ($ token , 13 , 16 );
432
432
433
- }//end testNullableNamespace ()
433
+ }//end testNullableUnqualifiedClassName ()
434
434
435
435
436
436
/**
437
- * Test arrow functions that use the namespace operator in the return type.
437
+ * Test arrow functions that use namespace relative class name in the return type.
438
438
*
439
439
* @covers PHP_CodeSniffer\Tokenizers\PHP::processAdditional
440
440
*
441
441
* @return void
442
442
*/
443
- public function testNamespaceOperatorInTypes ()
443
+ public function testNamespaceRelativeClassNameInTypes ()
444
444
{
445
- $ token = $ this ->getTargetToken ('/* testNamespaceOperatorInTypes */ ' , T_FN );
445
+ $ token = $ this ->getTargetToken ('/* testNamespaceRelativeClassNameInTypes */ ' , T_FN );
446
446
$ this ->backfillHelper ($ token );
447
447
$ this ->scopePositionTestHelper ($ token , 12 , 15 );
448
448
449
- }//end testNamespaceOperatorInTypes ()
449
+ }//end testNamespaceRelativeClassNameInTypes ()
450
450
451
451
452
452
/**
0 commit comments