/** * @dataProvider validPrecisionThresholdProvider * * @param $threshold */ public function testPrecisionThreshold($threshold) { $agg = new Cardinality('threshold'); $agg->setPrecisionThreshold($threshold); $this->assertNotNull($agg->getParam('precision_threshold')); $this->assertInternalType('int', $agg->getParam('precision_threshold')); }