Skip to content

Commit a647277

Browse files
committed
feat fix test
1 parent db052cc commit a647277

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -842,13 +842,11 @@ public function testOffsetAccess(): void
842842
public function testUnresolvableParameter(): void
843843
{
844844
$errors = $this->runAnalyse(__DIR__ . '/data/unresolvable-parameter.php');
845-
$this->assertCount(3, $errors);
846-
$this->assertSame('Parameter #2 $array of function array_map expects array, list<string>|false given.', $errors[0]->getMessage());
847-
$this->assertSame(18, $errors[0]->getLine());
848-
$this->assertSame('Method UnresolvableParameter\Collection::pipeInto() has parameter $class with no type specified.', $errors[1]->getMessage());
845+
$this->assertCount(2, $errors);
846+
$this->assertSame('Method UnresolvableParameter\Collection::pipeInto() has parameter $class with no type specified.', $errors[0]->getMessage());
847+
$this->assertSame(30, $errors[0]->getLine());
848+
$this->assertSame('PHPDoc tag @param for parameter $class contains unresolvable type.', $errors[1]->getMessage());
849849
$this->assertSame(30, $errors[1]->getLine());
850-
$this->assertSame('PHPDoc tag @param for parameter $class contains unresolvable type.', $errors[2]->getMessage());
851-
$this->assertSame(30, $errors[2]->getLine());
852850
}
853851

854852
public function testBug7248(): void

0 commit comments

Comments
 (0)