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