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