From 3dddc2d2a52e97fbd8299544ede64600da64d3f0 Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Fri, 10 May 2024 16:16:02 +0200 Subject: [PATCH] Remove current state test snapshot --- tests/PHPStan/Parser/RichParserTest.php | 106 +----------------------- 1 file changed, 1 insertion(+), 105 deletions(-) diff --git a/tests/PHPStan/Parser/RichParserTest.php b/tests/PHPStan/Parser/RichParserTest.php index 2eacc41f51..75c9d28ba0 100644 --- a/tests/PHPStan/Parser/RichParserTest.php +++ b/tests/PHPStan/Parser/RichParserTest.php @@ -221,70 +221,6 @@ public function dataLinesToIgnore(): iterable 3 => ['test'], ], ]; - - yield [ - ' ['https'], - ], - ]; - - yield [ - ' ['identifier'], - ], - ]; - - yield [ - ' ['identifier'], - ], - ]; - - yield [ - ' ['identifier'], - ], - ]; - - yield [ - ' ['identifier'], - ], - ]; - - yield [ - ' ['identifier', 'comment'], - ], - ]; - - yield [ - ' ['me'], - ], - ]; - - yield [ - ' ['me', 'two'], - ], - ]; } /** @@ -297,8 +233,8 @@ public function testLinesToIgnore(string $code, array $expectedLines): void $parser = self::getContainer()->getService('currentPhpVersionRichParser'); $ast = $parser->parseString($code); $lines = $ast[0]->getAttribute('linesToIgnore'); - $this->assertSame($expectedLines, $lines); $this->assertNull($ast[0]->getAttribute('linesToIgnoreParseErrors')); + $this->assertSame($expectedLines, $lines); } public function dataLinesToIgnoreParseErrors(): iterable @@ -374,46 +310,6 @@ public function dataLinesToIgnoreParseErrors(): iterable 2 => ['Unclosed opening parenthesis "(" without closing parenthesis ")"'], ], ]; - - yield [ - ' ['First token is not an identifier'], - ], - ]; - - yield [ - ' ['Missing identifier'], - ], - ]; - - yield [ - ' ['First token is not an identifier'], - ], - ]; - - yield [ - ' ['First token is not an identifier'], - ], - ]; - - yield [ - ' ['Unclosed opening parenthesis "(" without closing parenthesis ")"'], - ], - ]; } /**