Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dantleech committed Mar 9, 2024
1 parent e27ee6c commit dc47d73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function provideClassCreateProvider(): Generator
// File: subject.php
EOT
, 4, 1
, 4, 0
];

yield 'non empty file' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function testImportProvider(string $manifest, Closure $assertion, bool $i

$transmitter = $tester->transmitter()->filterByMethod('textDocument/publishDiagnostics');
$diagnostics = $transmitter->shiftNotification();
$diagnostics = $transmitter->shiftNotification();
$diagnostics = $diagnostics->params['diagnostics'] ?? [];
$assertion($result->result, $diagnostics);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testHandleSingle(): void

wait(delay(10));

self::assertEquals(1, $this->tester->transmitter()->count());
self::assertEquals(2, $this->tester->transmitter()->count());
}

private function createTestLinter(): TestLinter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testHandleSingle(): void

wait(delay(10));

self::assertEquals(1, $this->tester->transmitter()->count());
self::assertEquals(2, $this->tester->transmitter()->count());
}

private function createTestLinter(): TestLinter
Expand Down

0 comments on commit dc47d73

Please sign in to comment.