public function testSink() { $snippet = $this->snippetFromMethod(LoggingClient::class, 'sink'); $snippet->addLocal('logging', $this->client); $res = $snippet->invoke(); $this->assertEquals('my-sink', $res->output()); }