public function testAnnotate()
{
$snippet = $this->snippetFromMethod(VisionClient::class, 'annotate');
$snippet->addLocal('vision', $this->client);
$snippet->setLine(0, '$familyPhotoResource = fopen(\'php://temp\', \'r\');');
$this->connection->annotate(Argument::any())->shouldBeCalled()->willReturn(['responses' => [[]]]);
$this->client->setConnection($this->connection->reveal());
$res = $snippet->invoke('result');
$this->assertInstanceOf(Annotation::class, $res->returnVal());
}