public function testQuery() { $snippet = $this->snippetFromMethod(DatastoreClient::class, 'query'); $snippet->addLocal('datastore', $this->client); $res = $snippet->invoke('query'); $this->assertInstanceOf(Query::class, $res->returnVal()); }