validateSpline() public static méthode

Validate that there are enough input arrays (points), that each point array has precisely three numbers, and that no two points share the same first number (x-component)
public static validateSpline ( array $points, number $degree = 2 ) : boolean
$points array Array of arrays (points)
$degree number The miminum number of input arrays
Résultat boolean
 public function testNotAFunctionException()
 {
     // Two arrays share the same first number (x-component)
     $this->setExpectedException('MathPHP\\Exception\\BadDataException');
     ClampedCubicSpline::validateSpline([[0, 0, 1], [0, 5, 0], [1, 1, 3]]);
 }