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