Skip to content

Commit

Permalink
NamedFunctionCallArgumentsTest: minor fixes
Browse files Browse the repository at this point in the history
The error message would display the token code, which is not helfpul for a human, so changing it to the token `type`.
  • Loading branch information
jrfnl committed May 9, 2021
1 parent fde816c commit 848f45a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Core/Tokenizer/NamedFunctionCallArgumentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testNamedFunctionCallArguments($testMarker, $parameters)
$this->assertSame(
T_PARAM_NAME,
$tokens[$label]['code'],
'Token tokenized as '.$tokens[$label]['code'].', not T_PARAM_NAME (code)'
'Token tokenized as '.$tokens[$label]['type'].', not T_PARAM_NAME (code)'
);
$this->assertSame(
'T_PARAM_NAME',
Expand Down Expand Up @@ -278,7 +278,7 @@ public function testOtherTstringInFunctionCall($testMarker, $content)
$this->assertSame(
T_STRING,
$tokens[$label]['code'],
'Token tokenized as '.$tokens[$label]['code'].', not T_STRING (code)'
'Token tokenized as '.$tokens[$label]['type'].', not T_STRING (code)'
);
$this->assertSame(
'T_STRING',
Expand Down Expand Up @@ -709,7 +709,7 @@ public function testReservedKeywordsAsName($testMarker, $tokenTypes, $tokenConte
$this->assertSame(
T_PARAM_NAME,
$tokens[$label]['code'],
'Token tokenized as '.$tokens[$label]['code'].', not T_PARAM_NAME (code)'
'Token tokenized as '.$tokens[$label]['type'].', not T_PARAM_NAME (code)'
);
$this->assertSame(
'T_PARAM_NAME',
Expand Down

0 comments on commit 848f45a

Please sign in to comment.