public function testClassComplexPath()
{
$snippet = $this->snippetFromClass(Key::class, 1);
$ds = $this->prophesize(DatastoreClient::class);
$ds->key(Argument::any(), Argument::any())->will(function ($args) {
return new Key('my-awesome-project', ['path' => [['kind' => $args[0], 'name' => $args[1]]]]);
});
$snippet->addLocal('datastore', $ds->reveal());
$res = $snippet->invoke('key');
$this->assertEquals(3, count($res->returnVal()->path()));
}