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