MathPHP\Statistics\AverageTest::testHarmonicMeanExceptionNegativeValues PHP Method

testHarmonicMeanExceptionNegativeValues() public method

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