public function testSendSeries()
 {
     $series = new Series();
     $metric1 = new Metric('test.metric.name', array(array(time(), 20), array(time() - 5, 15), array(time() - 10, 10)));
     $metric1->setType(Metric::TYPE_GAUGE)->setHost('host1.com')->addTag('test', 'tag');
     $series->addMetric($metric1);
     $metric2 = new Metric('test.metric2.name', array(array(time(), 18), array(time() - 1, 21), array(time() - 2, 12)));
     $metric2->setType(Metric::TYPE_COUNTER);
     $series->addMetric($metric2);
     $this->client->sendSeries($series);
 }
 public function testRemoveMetrics()
 {
     $series = new Series();
     $metric = new Metric('test.metric.name', array(20));
     $series->addMetric($metric);
     $this->assertCount(1, $series->getMetrics());
     $series->removeMetrics();
     $this->assertCount(0, $series->getMetrics());
 }