MathPHP\Probability\CombinatoricsTest::testFactorialBoundsException PHP Méthode

testFactorialBoundsException() public méthode

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