MathPHP\NumericalAnalysis\NumericalDifferentiation\NumericalDifferentiationTest::testNotAFunctionException PHP Method

testNotAFunctionException() public method

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