public function testDelete() { $this->connection->deleteMetric(['metricName' => $this->formattedName])->willReturn([])->shouldBeCalledTimes(1); $metric = $this->getMetric($this->connection); $this->assertNull($metric->delete()); }