public function testSpacingNonConstant() { // There is not constant spacing between points $this->setExpectedException('MathPHP\\Exception\\BadDataException'); NumericalDifferentiation::isSpacingConstant([[0, 0], [3, 3], [2, 2]]); }