Skip to content

Commit 5107f87

Browse files
committed
Merge branch 'feature/namedfunctioncallargtest-minor-fix' of https://github.com/jrfnl/PHP_CodeSniffer
2 parents ea105e4 + 848f45a commit 5107f87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Core/Tokenizer/NamedFunctionCallArgumentsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testNamedFunctionCallArguments($testMarker, $parameters)
3838
$this->assertSame(
3939
T_PARAM_NAME,
4040
$tokens[$label]['code'],
41-
'Token tokenized as '.$tokens[$label]['code'].', not T_PARAM_NAME (code)'
41+
'Token tokenized as '.$tokens[$label]['type'].', not T_PARAM_NAME (code)'
4242
);
4343
$this->assertSame(
4444
'T_PARAM_NAME',
@@ -278,7 +278,7 @@ public function testOtherTstringInFunctionCall($testMarker, $content)
278278
$this->assertSame(
279279
T_STRING,
280280
$tokens[$label]['code'],
281-
'Token tokenized as '.$tokens[$label]['code'].', not T_STRING (code)'
281+
'Token tokenized as '.$tokens[$label]['type'].', not T_STRING (code)'
282282
);
283283
$this->assertSame(
284284
'T_STRING',
@@ -709,7 +709,7 @@ public function testReservedKeywordsAsName($testMarker, $tokenTypes, $tokenConte
709709
$this->assertSame(
710710
T_PARAM_NAME,
711711
$tokens[$label]['code'],
712-
'Token tokenized as '.$tokens[$label]['code'].', not T_PARAM_NAME (code)'
712+
'Token tokenized as '.$tokens[$label]['type'].', not T_PARAM_NAME (code)'
713713
);
714714
$this->assertSame(
715715
'T_PARAM_NAME',

0 commit comments

Comments
 (0)