protected function setUp() { $this->client = $this->getMockBuilder('\\InfluxDB\\Client')->disableOriginalConstructor()->getMock(); $this->collector = new InfluxDB($this->client); }