Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 22, 2023
1 parent 184e81b commit 5dd7c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
final class IntegrationTest extends PHPStanTestCase
{
// test all rules at once to make sure rule errors do not overlap
public function testE2E()
public function testE2E(): void
{
$errors = $this->runAnalyse(__DIR__ . '/data/e2e.php');
static::assertCount(2, $errors);

$this->assertSame('Expired on 2023-12-14: fix it.', $errors[0]->getMessage());
$this->assertSame('"php" version requirement ">=7" satisfied.', $errors[1]->getMessage());

}

public static function getAdditionalConfigFiles(): array
Expand All @@ -41,6 +40,7 @@ private function runAnalyse(string $file, ?array $allAnalysedFiles = null): arra
$analyser = self::getContainer()->getByType(Analyser::class);
/** @var FileHelper $fileHelper */
$fileHelper = self::getContainer()->getByType(FileHelper::class);
/** @phpstan-ignore-next-line missing bc promise */
$errors = $analyser->analyse([$file], null, null, true, $allAnalysedFiles)->getErrors();
foreach ($errors as $error) {
$this->assertSame($fileHelper->normalizePath($file), $error->getFilePath());
Expand Down

0 comments on commit 5dd7c89

Please sign in to comment.