public function testTargetNotInPoints() { // Our target is not the x-component of one of our points $this->setExpectedException('MathPHP\\Exception\\BadDataException'); NumericalDifferentiation::isTargetInPoints(1, [[0, 0], [3, 3], [2, 2]]); }