Changing measurement to name in result set

This commit is contained in:
danibrutal
2015-06-18 14:22:51 +02:00
parent 87121d2126
commit 7d91bb0519
3 changed files with 20 additions and 4 deletions
+16
View File
@@ -24,6 +24,22 @@ class ResultSetTest extends \PHPUnit_Framework_TestCase
new ResultSet($invalidJSON);
}
/**
* Throws Exception if something went wrong with influxDB
* @expectedException \Leaseweb\InfluxDB\InfluxDBClientError
*/
public function testThrowsInfluxDBException()
{
$errorResult = <<<EOD
{
"series": [],
"error": "Big error, many problems."
}
EOD;
new ResultSet($errorResult);
}
/**
* We can get points from measurement
*/