MathPHP\Functions\PiecewiseTest::testNumberOfIntervalsAndFunctionsUnequalException PHP Метод

testNumberOfIntervalsAndFunctionsUnequalException() публичный Метод

    public function testNumberOfIntervalsAndFunctionsUnequalException()
    {
        $intervals = [[-100, -2, false, true], [0, 2], [2, 100, true, false]];
        $functions = [new Polynomial([-1, 0]), new Polynomial([2])];
        $this->setExpectedException('MathPHP\\Exception\\BadDataException');
        $piecewise = new Piecewise($intervals, $functions);
    }