ResultSet - getSeries

This commit is contained in:
Daniel Martinez
2015-06-18 13:40:16 +02:00
parent 413cbf6eb2
commit 016c5abc6e
3 changed files with 70 additions and 16 deletions
+15 -4
View File
@@ -25,7 +25,7 @@ class ResultSetTest extends \PHPUnit_Framework_TestCase
}
/**
* We can get points for a measurement
* We can get points from measurement
*/
public function testGetPointsFromMeasurementName()
{
@@ -49,11 +49,22 @@ class ResultSetTest extends \PHPUnit_Framework_TestCase
public function testGetPointsFromTags()
{
$tags = array("host" => "server01");
$expectedNumberOfPoints = 2;
$points = $this->resultSet->getPoints('', $tags);
$this->assertTrue(
is_array($points)
);
$this->assertTrue(is_array($points));
$this->assertCount($expectedNumberOfPoints, $points);
}
public function testGetPointsFromNameAndTags()
{
$tags = array("host" => "server01");
$expectedNumberOfPoints = 2;
$points = $this->resultSet->getPoints('', $tags);
$this->assertTrue(is_array($points));
$this->assertCount($expectedNumberOfPoints, $points);
}
}