expectException(\Exception::class); ChiSquaredDistribution::testHypothesis([1, 2], [2]); } public function testHypothesisDegreesOfFreedomException() : void { $this->expectException(\Exception::class); ChiSquaredDistribution::testHypothesis([], []); } public function testPdfOutOfBoundsException() : void { $this->expectException(\OutOfBoundsException::class); ChiSquaredDistribution::getPdf(-1, 0); } public function testMgfOutOfBoundsException() : void { $this->expectException(\OutOfBoundsException::class); ChiSquaredDistribution::getMgf(1, 0.6); } }