/** * @expectedException \Bayer\DataDogClient\Series\MetricNotFoundException */ public function testRemoveNonExistingMetricThrowsException() { $series = new Series(); $series->removeMetric('non.existing.metric'); }