connect('completion'); $result = $client->complete(new PromptReference('book_seat'), ['name' => 'seat', 'value' => '12']); $this->assertSame(['12A', '12B'], $result->values); } #[TestDox('an empty value offers every completion the provider knows')] public function testEmptyValueOffersEveryCompletion(): void { $client = $this->connect('completion'); $result = $client->complete(new PromptReference('book_seat'), ['name' => 'seat', 'value' => '']); $this->assertSame(['12A', '12B', '14C'], $result->values); } #[TestDox('an argument the prompt does not declare completes to nothing')] public function testUnknownArgumentCompletesToNothing(): void { $client = $this->connect('completion'); $result = $client->complete(new PromptReference('book_seat'), ['name' => 'unknown', 'value' => '1']); $this->assertSame([], $result->values); } }