public function testDoubleFactorialExceptionNLessThanZero() { $this->setExpectedException('MathPHP\\Exception\\OutOfBoundsException'); Combinatorics::doubleFactorial(-1); }