public function testAnnotateBatch()
{
$snippet = $this->snippetFromMethod(VisionClient::class, 'annotateBatch');
$snippet->addLocal('vision', $this->client);
$snippet->setLine(2, '$familyPhotoResource = fopen(\'php://temp\', \'r\');');
$snippet->setLine(3, '$eiffelTowerResource = 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()[0]);
$this->assertInstanceOf(Annotation::class, $res->returnVal()[1]);
}