Skip to content

Commit

Permalink
Arrow function tests: remove some stray function calls
Browse files Browse the repository at this point in the history
Follow-up on #3215 which made these redundant, but didn't remove them.
  • Loading branch information
jrfnl committed Feb 20, 2021
1 parent 2ba5393 commit f5645cd
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions tests/Core/Tokenizer/BackfillFnTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ class BackfillFnTokenTest extends AbstractMethodUnitTest
*/
public function testSimple()
{
$tokens = self::$phpcsFile->getTokens();

foreach (['/* testStandard */', '/* testMixedCase */'] as $comment) {
$token = $this->getTargetToken($comment, T_FN);
$this->backfillHelper($token);
Expand All @@ -44,8 +42,6 @@ public function testSimple()
*/
public function testWhitespace()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testWhitespace */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 6, 13);
Expand All @@ -62,8 +58,6 @@ public function testWhitespace()
*/
public function testComment()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testComment */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 8, 15);
Expand All @@ -80,8 +74,6 @@ public function testComment()
*/
public function testHeredoc()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testHeredoc */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 4, 9);
Expand All @@ -98,8 +90,6 @@ public function testHeredoc()
*/
public function testNestedOuter()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testNestedOuter */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 5, 25);
Expand Down Expand Up @@ -147,8 +137,6 @@ public function testNestedInner()
*/
public function testFunctionCall()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testFunctionCall */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 5, 17);
Expand All @@ -165,8 +153,6 @@ public function testFunctionCall()
*/
public function testChainedFunctionCall()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testChainedFunctionCall */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 5, 12, 'bracket');
Expand All @@ -183,8 +169,6 @@ public function testChainedFunctionCall()
*/
public function testFunctionArgument()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testFunctionArgument */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 8, 15, 'comma');
Expand All @@ -201,8 +185,6 @@ public function testFunctionArgument()
*/
public function testClosure()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testClosure */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 5, 60, 'comma');
Expand All @@ -219,8 +201,6 @@ public function testClosure()
*/
public function testReturnType()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testReturnType */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 11, 18, 'comma');
Expand All @@ -237,8 +217,6 @@ public function testReturnType()
*/
public function testReference()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testReference */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 6, 9);
Expand All @@ -255,8 +233,6 @@ public function testReference()
*/
public function testGrouped()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testGrouped */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 5, 8);
Expand All @@ -273,8 +249,6 @@ public function testGrouped()
*/
public function testArrayValue()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testArrayValue */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 4, 9, 'comma');
Expand All @@ -291,8 +265,6 @@ public function testArrayValue()
*/
public function testYield()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testYield */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 5, 14);
Expand All @@ -309,8 +281,6 @@ public function testYield()
*/
public function testNullableNamespace()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testNullableNamespace */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 15, 18);
Expand All @@ -327,8 +297,6 @@ public function testNullableNamespace()
*/
public function testNamespaceOperatorInTypes()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testNamespaceOperatorInTypes */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 16, 19);
Expand Down Expand Up @@ -386,8 +354,6 @@ public function testKeywordReturnTypes()
*/
public function testUnionParamType()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testUnionParamType */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 13, 21);
Expand All @@ -404,8 +370,6 @@ public function testUnionParamType()
*/
public function testUnionReturnType()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testUnionReturnType */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 11, 18);
Expand Down Expand Up @@ -474,8 +438,6 @@ public function testTernary()
*/
public function testNestedInMethod()
{
$tokens = self::$phpcsFile->getTokens();

$token = $this->getTargetToken('/* testNestedInMethod */', T_FN);
$this->backfillHelper($token);
$this->scopePositionTestHelper($token, 5, 17);
Expand Down

0 comments on commit f5645cd

Please sign in to comment.