1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Rename to TestCase::assertHasIssue

This commit is contained in:
Ivan Sidorov 2024-02-14 15:42:44 +00:00
parent cfd0fd1554
commit 08a479aede
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ class TestCase extends BaseTestCase
return $this->getName($withDataSet);
}
public static function assertHasIssueType(string $expected, string $message = ''): void
public static function assertHasIssue(string $expected, string $message = ''): void
{
$issue_messages = [];
$res = false;

View File

@ -107,6 +107,6 @@ trait InvalidCodeAnalysisWithIssuesTestTrait
$this->addFile($file_path, $code);
$this->analyzeFile($file_path, new Context());
$this->assertHasIssueType($error_message);
$this->assertHasIssue($error_message);
}
}