public function testGetDegree(array $coefficients, int $expected) { $polynomial = new Polynomial($coefficients); $degree = $polynomial->getDegree(); $this->assertEquals($expected, $degree); }