/**
* @return Generator<Promise<Phpactor\LanguageServer\Core\Rpc\ResponseMessage|null>>
*/
public function testReturnsNullIfMessageIsANotification(): Generator
{
$dispatcher = $this->createRunner([
new ClosureHandler('foobar', function (): void {
})
]);
$response = yield $dispatcher->dispatch(
new NotificationMessage('foobar', [])
);
self::assertNull($response);
}
ResponseMessage should be the short name --- this could be inconsistent, it seems to work on some of the methods in this class (tests/Unit/Core/Handler/HandlerMethodRunnerTest.php) in language-server
ResponseMessage should be the short name --- this could be inconsistent, it seems to work on some of the methods in this class (
tests/Unit/Core/Handler/HandlerMethodRunnerTest.php) inlanguage-server