public function testSinks()
{
$snippet = $this->snippetFromMethod(LoggingClient::class, 'sinks');
$snippet->addLocal('logging', $this->client);
$this->connection->listSinks(Argument::any())->shouldBeCalled()->willReturn(['sinks' => [['name' => 'Sink 1'], ['name' => 'Sink 2']]]);
$this->client->setConnection($this->connection->reveal());
$res = $snippet->invoke('sinks');
$this->assertInstanceOf(\Generator::class, $res->returnVal());
$this->assertEquals('Sink 1', explode(PHP_EOL, $res->output())[0]);
$this->assertEquals('Sink 2', explode(PHP_EOL, $res->output())[1]);
}