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