From 848f45afe2673664296e0e87343373ee7dbb4858 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 10 May 2021 01:20:57 +0200 Subject: [PATCH] NamedFunctionCallArgumentsTest: minor fixes The error message would display the token code, which is not helfpul for a human, so changing it to the token `type`. --- tests/Core/Tokenizer/NamedFunctionCallArgumentsTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Core/Tokenizer/NamedFunctionCallArgumentsTest.php b/tests/Core/Tokenizer/NamedFunctionCallArgumentsTest.php index 13be10e5f6..52845ac72c 100644 --- a/tests/Core/Tokenizer/NamedFunctionCallArgumentsTest.php +++ b/tests/Core/Tokenizer/NamedFunctionCallArgumentsTest.php @@ -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', @@ -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', @@ -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',