expectException(\Exception::class); ChiSquaredDistribution::testHypothesis([1, 2], [2]); } /** * @covers phpOMS\Math\Stochastic\Distribution\ChiSquaredDistribution * @group framework */ public function testHypothesisDegreesOfFreedomException() : void { $this->expectException(\Exception::class); ChiSquaredDistribution::testHypothesis([], []); } /** * @covers phpOMS\Math\Stochastic\Distribution\ChiSquaredDistribution * @group framework */ public function testPdfOutOfBoundsException() : void { $this->expectException(\OutOfBoundsException::class); ChiSquaredDistribution::getPdf(-1, 0); } /** * @covers phpOMS\Math\Stochastic\Distribution\ChiSquaredDistribution * @group framework */ public function testMgfOutOfBoundsException() : void { $this->expectException(\OutOfBoundsException::class); ChiSquaredDistribution::getMgf(1, 0.6); } }