public function testClass()
{
$connectionStub = $this->prophesize(ConnectionInterface::class);
$connectionStub->annotate(Argument::any())->willReturn(['responses' => [['faceAnnotations' => [['landmarks' => [[]]]]]]]);
$snippet = $this->snippetFromClass(Face::class);
$snippet->addLocal('connectionStub', $connectionStub->reveal());
$snippet->setLine(5, '$imageResource = fopen(\'php://temp\', \'r\');');
$snippet->insertAfterLine(3, '$reflection = new \\ReflectionClass($vision);
$property = $reflection->getProperty(\'connection\');
$property->setAccessible(true);
$property->setValue($vision, $connectionStub);
$property->setAccessible(false);');
}