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

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

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