public function testNonConstantSpacingException() { // There is not constant spacing between points $this->setExpectedException('\\Exception'); SimpsonsThreeEighthsRule::approximate([[0, 0], [3, 3], [2, 2], [4, 4]]); }