/** */ public function testQuery() { $client = new Client('localhost', 8086); $query = "some-bad-query"; $bodyResponse = file_get_contents(dirname(__FILE__) . '/result.example.json'); $httpMockClient = $this->buildHttpMockClient($bodyResponse); $client->setHttpClient($httpMockClient); /** @var \InfluxDB\ResultSet $result */ $result = $client->query(null, $query); $this->assertInstanceOf('\\InfluxDB\\ResultSet', $result); }