public function testHarmonicMeanExceptionNegativeValues() { $this->setExpectedException('MathPHP\\Exception\\BadDataException'); Average::harmonicMean([1, 2, 3, -4, 5, -6, 7]); }