expectException(Exception\BadDataException::class); // When $regression = new Linear($points); } /** * @return array [points] */ public function dataProviderForLeastSquaresDegreesOfFreedomBadDataException(): array { return [ 'zero_points' => [ [], ], 'one_point' => [ [[1, 2]], ], 'two_points' => [ [[1, 2], [2, 3]], ] ]; } }