public function testSubintervalDecreasingException()
{
$intervals = [[-100, -2], [2, -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);
}