MathPHP\NumericalAnalysis\Interpolation\InterpolationTest::testNotAFunctionException PHP Method

testNotAFunctionException() public method

    public function testNotAFunctionException()
    {
        // Two arrays share the same first number (x-component)
        $this->setExpectedException('MathPHP\\Exception\\BadDataException');
        Interpolation::validate([[0, 0], [0, 5], [1, 1]]);
    }